Manually set pageParam in v5 for useInfiniteQuery
Hello,
I was wondering what is the equivalent function to specify a pageParam when ussing
fetchNextPage
in v5. Previously as pero documentation, FetchNextPageOptions
took in the following option:
options.pageParam: unknown allows you to manually specify a page param instead of using getNextPageParam.
However, this feature was removed in v5. What is its v5 counterpart?
reference: see in docs (v4): https://tanstack.com/query/v4/docs/framework/react/reference/useInfiniteQueryuseInfiniteQuery | TanStack Query React Docs
const {
fetchNextPage,
1 Reply
deep-jade•13mo ago
what were you using that feature for? It was removed because it was buggy - after having passed the
pageParam
, any further refetch didn't work correctly.