Adding Infinite scroll in Phoenix LiveView App
In my previous blog, I explained how to query Graphql API using Neuron. Throughout the blog, I explained the working of Neuron on page 0. Whereas, there will be scenarios when users can have multiple blogs paginated on multiple pages. So, we need to ...
abulasar.com5 min read
Paweł Świątkowski
Elixir developer with Ruby past
Nice article!
It's worth mentioning that if you scroll for long enough time,
socket.assigns.blogswould grow - possibly a lot. Unless you don't plan on live updating them, you can use temporary assigns. LiveView docs have the whole section about it.