Re:Show HN: WeUseElixir - Elixir project directory
by ipnon on Saturday September 20, 2025 @03:36AM
(#45311296)
LiveView already has local first state. The magic in LiveView is how it uses WebSocket connections to the client to keep the client state in sync with the server state. This is why you just need to update the socket and the rest just works.
If you want to have some state that only exists on the server, then you simply don’t assign that data to the socket.
If you want to have some state that only exists on the server, then you simply don’t assign that data to the socket.