You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Backpex just assigns the items as a list. It is recommended to use the newish LiveView streams for any kind of collection.
Todos
Assign items as a stream
Make resource index table work with a stream
Properly handle and test events (e.g., item has been created or removed)
Notes
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.
Currently, Backpex just assigns the items as a list. It is recommended to use the newish LiveView streams for any kind of collection.
Todos
Notes
https://fly.io/phoenix-files/phoenix-dev-blog-streams/
https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#stream/4
The text was updated successfully, but these errors were encountered: