useInfiniteQuery update
Hello guys! I can't understand how to use useInfiniteQuery() in this version.
in the last year's version was not a Required parameter.
1 Reply
genetic-orange•3y ago
it's new in v5: https://tanstack.com/query/v5/docs/react/guides/migrating-to-v5#infinite-queries-now-need-a-initialpageparam
Migrating to TanStack Query v5 | TanStack Query Docs
Breaking Changes
v5 is a major version, so there are some breaking changes to be aware of: