We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Suppose we have in path_configuration:
path_configuration
/list_items
replace_root
/add_item with
default
Let's execute following step
/add_items
WebViewBridge
NavigationHierarchyController.replaceRoot
action=replace
redirected
The text was updated successfully, but these errors were encountered:
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 #24. What happens if you try your scenario with that branch?
Sorry, something went wrong.
It doesn't help. It is better as NavigationHierarchyController.replaceRoot gets proposal with redirected==true but flag is ignored:
proposal
redirected==true
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.
https://github.com/MichalSznajder/hotwire-native-ios/blob/cedea09b969257436f80044e98566f5b7814a05d/Source/Turbo/Navigator/NavigationHierarchyController.swift#L190-L191
olivaresf
No branches or pull requests
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: