Skip to content

Commit

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

0 comments on commit 7e26510

Please sign in to comment.