phoenix_live_view icon indicating copy to clipboard operation
phoenix_live_view copied to clipboard

Live navigation from a within stickied liveview

Open wwww-wwww opened this issue 2 years ago • 4 comments

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.

wwww-wwww avatar Apr 30 '22 08:04 wwww-wwww

are you doing a push_redirect to a route within the same live_session?

chrismccord avatar May 02 '22 13:05 chrismccord

yeah, they're in the same live_session (I have everything under 1 live_session)

wwww-wwww avatar May 02 '22 14:05 wwww-wwww

same issue

Fudoshiki avatar May 31 '22 18:05 Fudoshiki

@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

atif avatar Aug 08 '22 11:08 atif

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

josevalim avatar Jul 17 '23 20:07 josevalim

If folks can put together a reproduction, I would be happy to take a look. Thanks!

chrismccord avatar Jan 19 '24 17:01 chrismccord