naymspace / backpex

Backpex is a highly customizable administration panel for Phoenix LiveView applications.
https://backpex.live
MIT License
360 stars 20 forks source link

Streams for list of items #414

Open pehbehbeh opened 2 weeks ago

pehbehbeh commented 2 weeks ago

Streams by default for any kind of collection is a good intuition to have. You should use streams any time you don’t want to hold the list of items in memory – which is most times. Streams are also a goto when you want to efficiently update a single list item without refactoring to a layer of LiveComponents for the items.

https://fly.io/phoenix-files/phoenix-dev-blog-streams/

https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#stream/4