Skip to content

Commit

Permalink
Use restore
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Olivares committed Jul 4, 2024
1 parent 014e4f6 commit d18aa35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Turbo Navigator/TurboNavigator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ extension TurboNavigator: TurboNavigationHierarchyControllerDelegate {
newTopmostVisitable: any Visitable) {
switch navigationStack {
case .main:
session.visit(newTopmostVisitable, reload: true)
session.visit(newTopmostVisitable, action: .restore)
case .modal:
modalSession.visit(newTopmostVisitable, reload: true)
modalSession.visit(newTopmostVisitable, action: .restore)
}
}
}
Expand Down

0 comments on commit d18aa35

Please sign in to comment.