Phoenix LiveView's new Streams to handle large collections
Автор: German Velasco
Загружено: 2023-02-24
Просмотров: 3114
Описание:
LiveView just shipped a new concept of streams to deal with large collections without keeping data in memory.
I gotta say, I like the ergonomics! 🙌
Use phx-update="stream"
Create stream with `stream/2`
Access stream data inside the `streams` assign
Add/update stream with `stream_insert/4`
Delete from stream with `stream_delete/3`
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: