TanStackT
TanStack9mo ago
1 reply
foolish-indigo

Prefetching previous pageParams for a useInfiniteQuery?

Lets say i have 2 previous cursors in cache (from a regular query) that I want to use on an useInfiniteQuery - how would I do this? Basically the useInfiniteQuery hook will fetch the current token, but it wont have the previous cursors and data in cache yet, I simply want to supply the previous tokens so it can populate pageParams and data from the fetch.
Was this page helpful?