Open MichalSznajder opened 2 months ago
Hey @MichalSznajder,
New visit is initiated with action=replace, redirected flag is ignored
I suspect this is a known issue that could be fixed with https://github.com/hotwired/hotwire-native-ios/pull/24. What happens if you try your scenario with that branch?
It doesn't help. It is better as NavigationHierarchyController.replaceRoot
gets proposal
with redirected==true
but flag is ignored:
I attempted to fix it by passing options created from the proposal, and now the server is no longer being hit twice. Not sure about side effects.
Suppose we have in
path_configuration
:/list_items
withreplace_root
, also default URL in app/add_item with
withdefault
Let's execute following step
/list_items
./add_items
/list_items
/list_items
is hit and visit is proposed viaWebViewBridge
path_configuration
we end up inNavigationHierarchyController.replaceRoot
action=replace
,redirected
flag is ignored/list_items
is hit again (resulting in flash being lost)