Elixir Security: Sobelow 0.12.1 Released, Adds LiveView Support 127 LOC livebook that shows how to deploy one machine to fly.io in 40 seconds

LiveView Streams with Pagination

I’ve run across this several times now.

How do we use LiveView streams with pagination (for example, with infinite scroll) where we want to insert more than one element?

This is what I do 👇

Enum.reduce(elements, socket, fn socket, el -> 
  stream_insert(socket, :elements, el)
end)

See it in action 👉 https://youtube.com/shorts/oR88yGtw89w 👀