4 ms·
Based on my casual browsing of the code I assume that it pushes small HTML fragments via WebSockets whenever the backend state changes on a given ActiveRecord m
by mhoad 6y ago
Based on my casual browsing of the code I assume that it pushes small HTML fragments via WebSockets whenever the backend state changes on a given ActiveRecord model. It covers things like automatically updating the state of a model on a page, adding, removing, reordering elements etc all without any custom code so long as things are wired up correctly.
Basically, all the "re-activeness" of an SPA but without ever having to worry about the concept of client side state management at all.
Edit: I am a grumpy old man in web-dev years who hadn't ever really looked into Phoenix Live View before now but after watching a video on how it works, yes, my understanding is that it works basically the same way.
- Serow225 6y agoThat sounds pretty similar to Microsoft's Blazor (server side) model.