Are there any books or articles explaining how LiveView tracks changes under the hood?

I know that the HTML in the view function is compiled into an Elixir program that automatically tracks changes and sends the smallest amount of data over the wire, but no one’s explained how that works under the hood.

Does LiveView compare the new assigns to the previous version? Does it store the assigns in the process, or is it ping-ponged from the client to the server with every request and response?

I’m also curious to know the decision process during the design of LiveView. If there are any blog posts, books, or dev. logs somewhere, I’d love to know.

Here Supercharge your app: latency and rendering optimizations in Phoenix LiveView - Dashbit Blog

1 Like