infiniteQueryOptions({
queryKey,
...options,
})Options
You can generally pass everything to infiniteQueryOptions that you can also pass to useInfiniteQuery. These options can be shared across hooks and imperative APIs such as queryClient.infiniteQuery.
See useInfiniteQuery for more information.