-
What is the best practice to do pagination based on the cursor? Edited: infinite scroll pagination |
Beta Was this translation helpful? Give feedback.
Answered by
kitten
Dec 12, 2020
Replies: 1 comment 2 replies
-
This isn't a very precise question; 😅 however, if this is about how to actually paginate then you pass the cursor variable. If this is about infinite scroll pagination, then this pattern works well: https://twitter.com/benawad/status/1303503308271816711?s=21 If you use Graphcache then there's a dedicated helper that can do infinite scroll pagination automatically |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
NurdinDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This isn't a very precise question; 😅 however, if this is about how to actually paginate then you pass the cursor variable. If this is about infinite scroll pagination, then this pattern works well: https://twitter.com/benawad/status/1303503308271816711?s=21
If you use Graphcache then there's a dedicated helper that can do infinite scroll pagination automatically