Skip to content

Infinite scroll with cursor based pagination in a Next.js app #1486

Answered by kitten
m-abdelwahab asked this question in Q&A
Discussion options

You must be logged in to vote

This looks almost Relay-compatible to me. The cursor argument must be named after and it should work just fine ✌️

I'd also recommend keeping all type names as pascal case, eg PageInfo, this is defined as a convention in Relay's spec, and it will also prevent misfiring warnings from Graphcache

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kitten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants