phoenix_live_view
phoenix_live_view copied to clipboard
Live navigation from a within stickied liveview
Environment
- Elixir version (elixir -v):
- Phoenix version (mix deps):
- Phoenix LiveView version (mix deps): 0.17.9
- Operating system:
- Browsers you attempted to reproduce this bug on (the more the merrier):
- Does the problem persist after removing "assets/node_modules" and trying again? Yes/no:
Actual behavior
push_patch doesn't work, saying that the root is different. OK. push_redirect works, but it causes the web page to reload.
Expected behavior
The redirect should only patch like it does in a non-stickied liveview.
are you doing a push_redirect to a route within the same live_session?
yeah, they're in the same live_session (I have everything under 1 live_session)
same issue
@chrismccord Facing the same issue https://elixirforum.com/t/push-redirect-not-working-from-sticky-child-liveview-instead-it-seems-to-do-a-socket-reconnection-as-per-console/49320
Can you folks provide a minimal app to reproduce the error? You can find a starting example here: https://github.com/wojtekmach/mix_install_examples/blob/main/phoenix_live_view.exs
If folks can put together a reproduction, I would be happy to take a look. Thanks!