backpex icon indicating copy to clipboard operation
backpex copied to clipboard

Streams for list of items

Open pehbehbeh opened this issue 8 months ago • 0 comments

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

pehbehbeh avatar Jun 26 '24 11:06 pehbehbeh