News for hackers. Stuff that matters.
Re:Generate Elixir/Phoenix Boilerplate by dnautics on Tuesday September 28, 2021 @02:11AM (#28679807)
No, the purpose of live view is to act as a "smart server-side caching layer" so you don't throw everything away and start from scratch each time you hit the server.
Re:Generate Elixir/Phoenix Boilerplate by wrren on Tuesday September 28, 2021 @05:01AM (#28680658)
That’s really not what it is. Live View is a replacement for most of what you can do with JS, but isn’t great for everything. The browser connects to the server via web socket and a process is started to manage the DOM state. Diffs are sent to the browser in response to various events such as clicks on elements or PubSub broadcasts.
Re:Generate Elixir/Phoenix Boilerplate by dnautics on Tuesday September 28, 2021 @05:25PM (#28687720)
you are describing what it is, but not what the bigger point is. Here it is, from Chris McCord: https://www.youtube.com/watch?v=XhNv1ikZNLs&list=PLqj39LCvnO...
Re:Generate Elixir/Phoenix Boilerplate by void_mint on Tuesday September 28, 2021 @02:44AM (#28679963)
Ah, TIL. I have no experience other than being a passive fan. Thanks!