Skip to content

Commit

Permalink
Restore instead of reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Olivares committed Jul 5, 2024
1 parent 23d5ca9 commit 84f0eca
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 84f0eca

Please sign in to comment.