Social media Infinite scroll

  • leo_o_o-1359543894068433026

    Leo

    19 days ago

    Hey guys, I was wondering how to reproduce the infinite scroll like the one similar to social media where the more you scroll down, the more content gets rendered.

    I can’t quickly figure out how to make an API request and add the content on top of what has already been rendered.

    I would appreciate any response.
    1
  • lucasg-1359557239077081319

    Lucas G

    19 days ago

    There's another post that covers this
  • But the gist of it is that you can use an observer (there's an observer package)
  • That can trigger an API call with an offset
  • The new items are then appended to a rendered list