Things I Learned using Phoenix LiveView in 2024
Use handle_params/3 more often rather than mount/3 for assigning.
def mount(_params, _session, socket), do: {:ok, socket}
def handle_params(params, _uri, socket) do
{:noreply,
socket
|> assign_here_1(params)
|> assign_here_...
paugramming.com2 min read