You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: Yes
Actual behavior
In my application, i use nested liveview in layout to implement sidebar. In sidevar liveview, using <.link navigate> navgite to liveview is ok, but using push_navigate in click handle_event cause full reload, and liveview socket is reconnected.
app.html.heex implement sidebar as nested liveview in layout
defmodule TestliveWeb.ArticleLive do
use TestliveWeb, :live_view
@impl true
def render(assigns) do
~H"""
<div>
<%= @id %>
</div>
"""
end
@impl true
def mount(%{"id" => id}, _session, socket) do
{:ok, assign(socket, id: id)}
end
end
Environment
Actual behavior
In my application, i use nested liveview in layout to implement sidebar. In sidevar liveview, using <.link navigate> navgite to liveview is ok, but using push_navigate in click handle_event cause full reload, and liveview socket is reconnected.
app.html.heex implement sidebar as nested liveview in layout
side_bar_live.ex
article_live.ex
main_live.ex
router
Expected behavior
The text was updated successfully, but these errors were encountered: