Hi! I’m considering LiveView for authenticated users and a normal controller for non-authenticated ones.
This is because the page might have many non-authenticated visitors who read content but probably won’t need LiveView’s features.
Does this make sense? Or is there a way in LiveView’s
render to render the initial page but do not establish the socket connection? (for non-logged visitors or a different condition)
If I decided to use a normal controller for non-logged visitors and a LiveView for logged users, how could I do it in the Router? Is there a way to add a condition in the
scope? or should I use a