I am aware of the second mount call and That’s exactly what I was asking for.
How do I do it? i.e. Prevent the socket connection?
I understand that, I was just saying why have two ways of writing the same thing, at least for static page with no file upload. Just a read only page should render fine without socket connection stage and second mount.
If I can just figure out a way to stop that second mount and socket connection, I will write everything in LiveView and only prevent socket connection for static pages.
P.S. I hope it’s not on_connect? |> dont_connect.
P.P.S. This is the reason I’m asking for a solution: