---
title: "Discussion on \"Adding Infinite scroll in Phoenix LiveView App\" | Hashnode"
description: "Discussion on \"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 ..."
url: "https://hashnode.com/posts/adding-infinite-scroll-in-phoenix-liveview-app/629f1043aa1e065bd75f6722"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Adding Infinite scroll in Phoenix LiveView App](https://abulasar.com/adding-infinite-scroll-in-phoenix-liveview-app?utm_source=hashnode&utm_medium=feed)

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 ...

Jun 7, 2022 · 5 min read · abulasar.com  
Updated Sep 1, 2022  
Read the article

-   [#infinite-scrolling](https://hashnode.com/tag/infinite-scrolling)
-   [#elixir](https://hashnode.com/tag/elixir)
-   [#phoenix](https://hashnode.com/tag/phoenix)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[AbulAsar S.](https://hashnode.com/@abulasar)

@abulasar · Mumbai, India

  
[View profile](https://hashnode.com/@abulasar)

Elixir |> JS/TS |> C++ |> AI enthusiast

I am a Software Engineer from Mumbai, India. In love with Functional programming ( precisely Elixir). Love to share the knowledge that I learn while developing things.

## Responses 1

Markdown supported · ⌘↵ to post

[Paweł Świątkowski](https://hashnode.com/@katafrakt)

[Jun 8, 2022](https://hashnode.com/posts/adding-infinite-scroll-in-phoenix-liveview-app/629f1043aa1e065bd75f6722/comment/62a104a2c1e15074e325c548)

Nice article!

It's worth mentioning that if you scroll for long enough time, `socket.assigns.blogs` would grow - possibly a lot. Unless you don't plan on live updating them, you can use temporary assigns. LiveView docs have [the whole section](https://hexdocs.pm/phoenix_live_view/dom-patching.html#temporary-assigns) about it.

[AbulAsar S.](https://hashnode.com/@abulasar)

[Jun 9, 2022](https://hashnode.com/posts/adding-infinite-scroll-in-phoenix-liveview-app/629f1043aa1e065bd75f6722/comment/62a104a2c1e15074e325c548#reply-62a1ce19a4c962768fc34ac8)

That's an excellent point [Paweł Świątkowski](https://hashnode.com/@katafrakt), sure I'll edit the blog and add this point.
