From 7e2651075a0bb322124889540e66994e41014841 Mon Sep 17 00:00:00 2001 From: Fernando Olivares Date: Thu, 4 Jul 2024 15:47:22 -0600 Subject: [PATCH] Force a reload --- Source/Turbo Navigator/TurboNavigator.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/Turbo Navigator/TurboNavigator.swift b/Source/Turbo Navigator/TurboNavigator.swift index efb0f53..4359300 100644 --- a/Source/Turbo Navigator/TurboNavigator.swift +++ b/Source/Turbo Navigator/TurboNavigator.swift @@ -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) } } }