News for hackers. Stuff that matters.
Re:How we got to LiveView by ramchip on Wednesday September 22, 2021 @08:39PM (#28623916)
You can store state client-side. Say you have a view to edit users, with a modal dialog. A typical LiveView app will change the URL when you open the modal, so it's like /users?action=edit&user=bob. When a server goes down the client reconnects, and the LV receives the URL params in its handle_param callback, so it can recover the earlier state. Forms recover automatically in a similar way.

With this and a DB to store permanent data, an LV app can be deployed just like any other standard container app without user impact.

There are no comments on this comment yet.