Skip to content

Commit

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

0 comments on commit ddb1358

Please sign in to comment.