Phoenix LiveView: mount, assigns & Events. LiveView builds rich, real-time interactive UIs mostly in server-side Elixir. State lives on the server; after an initial server-rendered HTML response, a persistent WebSocket c…
ReadPhoenix LiveView: PubSub, Components & Hooks. Reacting to Events From Other Sources. def mount(_params, _session, socket) do Phoenix.PubSub.subscribe(MyApp.PubSub, "orders") {:ok, socket} end def handle_info({:new_order,…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever