TanStackT
TanStack14mo ago
28 replies
abstract-purple

`fetchNextPage` - how does it work?

So does fetchNextPage unpack the result of the
queryFn
with the new page parameters and the pop it into the pages array? Or does it replace the data.pages entirely? I doubt it's the latter, right? But what it's doing underneath seems really weird and I don't understand it.
Was this page helpful?