Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: