Docs
CodeRabbit
Cloudflare
Railway
Clerk
Netlify
OpenRouter
WorkOS
SerpAPI
AG Grid
Electric
Prisma
Unkey
Sentry
CodeRabbit
Cloudflare
Railway
Clerk
Netlify
OpenRouter
WorkOS
SerpAPI
AG Grid
Electric
Prisma
Unkey
Sentry
API Reference

infiniteQueryOptions

tsx
infiniteQueryOptions({
  queryKey,
  ...options,
})
infiniteQueryOptions({
  queryKey,
  ...options,
})

Options

You can generally pass everything to infiniteQueryOptions 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.

  • queryKey: QueryKey
    • Required
    • The query key to generate options for.

See useInfiniteQuery for more information.