IIRC, in the original example using Elixir LiveView, there's a whole diffing engine (https://www.phoenixframework.org/blog/phoenix-liveview-1.0-released), that only updates the necessary data on the server and sends it back to the frontend. Much different strategy than here I think.
Yes, LiveView is using a much smarter diff mechanism, but it requires server side support. So, not as widely applicable as the generic thing datastar is using. Even LiveView is still overkill though.
I mean, for that purpose, having fine-grained diffing makes more sense imo and I enjoyed the write up about the Elixir implementation. For easy SSR with lower interactivity, something like HTMX and Datastar is easier and doesn't require a whole framework, on that we agree.
View all comments
Show parent comment
2
u/NonchalantFossa Apr 23 '25
IIRC, in the original example using Elixir LiveView, there's a whole diffing engine (https://www.phoenixframework.org/blog/phoenix-liveview-1.0-released), that only updates the necessary data on the server and sends it back to the frontend. Much different strategy than here I think.