Multiple LiveView. Share state across them via common socket

Oh wow, congrats then :slightly_smiling_face:

:crossed_fingers: for a non-business-critical open-sourcing of the logic someday : D

Ok both of those together make my head explode a little bit, I need to give it more thinking.
I was imagining something like


# at router.ex
live "/:route", RouterLive

and then

# At RouterLive module
def mount (...) do
  # Load some stuff from the landing request
end
def handle_params(%{"route" => route },...) do
    {:noreply, assign(socket, :route, route)}
end
def render(assigns) do
   ~L"""
     <%= if @route =="first-page" %>
         <%= live_render @socket, FirstPageLive, ... %>
     <% else %>
         <%= live_render @socket, SecondPageLive, ... %>
     <% end %>
   """
end
  # <-- Then here all the handle_event thingies from stateful LiveComponents

Is that even close?