Choosing Phoenix LiveView - The difficulties deciding between Phoenix LiveView and traditional frontend frameworks

What is a complex frontend (rhetorical, I know the article gave examples)? In my opinion, web apps like Airbnb, Uber Eats, Toast Takeout, Instacart could all be very easily implemented in LiveView. Btw, I use all those apps frequently and they are buggy messes, especially Airbnb and Instacart.

As for websocket disconnections, the framework gives you tools to handle them, but I think they could give us more or even automate it. On my product, I simply serialize all my assigns onto a form. If there is sensitive state, I encrypt. Then on reconnect, the form is submitted and the assigns are rehydrated. I think this can be built into the framework.

It could, of course. But as you already noted, there are gotchas. Some things are sensitive so you encrypt them. Some things won’t work if you reconnect to another node (NIF resources). With all that, I don’t think it should be part of LiveView itself and you instead roll your own if necessary (or build a library).

3 Likes