infiniteQueryOptions({
queryKey,
...options,
})
infiniteQueryOptions({
queryKey,
...options,
})
Options
You can generally pass everything to queryOptions that you can also pass to useInfiniteQuery. Some options will have no effect when then forwarded to a function like queryClient.prefetchInfiniteQuery, but TypeScript will still be fine with those excess properties.
“This course is the best way to learn how to use React Query in real-world applications.”—Tanner LinsleyGet the course
“This course is the best way to learn how to use React Query in real-world applications.”—Tanner LinsleyGet the course