peakshift/makers.bolt.fun

Using cursor-based pagination for feed posts api

Opened this issue · 2 comments

Using cursor-based pagination for feed posts api

If someone creates a new post while someone else is scrolling through the feed, then the skip parameter for the feed pagination query will be off by 1.
Meaning that the item fetched at the end of a page, will be fetched again at the beginning of the next page.
So to solve this issue, we can use cursor based pagination

Great problem to have! People posting while others are scrolling 😄