-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect to replace_root hits server twice #31
Comments
Hey @MichalSznajder,
I suspect this is a known issue that could be fixed with #24. What happens if you try your scenario with that branch? |
It doesn't help. It is better as hotwire-native-ios/Source/Turbo/Navigator/NavigationHierarchyController.swift Lines 188 to 195 in 9c7d6c2
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. |
This was resolved in: #60 |
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)The text was updated successfully, but these errors were encountered: