Skip to content

Commit

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

0 comments on commit 485dd86

Please sign in to comment.