3 ms·
Like hotwire? https://hotwired.dev/ https://hotwired.dev/ If it's just component rendering then how does it differ from Streaming SSR?
by culi 4y ago
Like hotwire?
https://hotwired.dev/ https://hotwired.dev/
If it's just component rendering then how does it differ from Streaming SSR?
- quechimba 4y agoStreaming SSR, as I understand it, does not keep a session alive on the server, so if you make interactive components they will still run in the browser. So I think it's more like Hotwired, because it keeps a session alive on the server, but it's declarative like React, so you just return whatever you want rendered and the VDOM will generate patches for the browser.
- tiberriver256 4y agoInstead of transferring entire components it transfers only the content that has changed since the last render. So if you have a like button with the number of likes totalling 3, and someone were to hit the like button to increase the count to 4 the only content transferred would literally be a string value of '4'
- irrational 4y agoIf it literally only transfers “4”, how does it know where to put it?
- dmitriid 4y agoMore like Phoenix LiveView: https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html