SIGN IN SIGN UP
TanStack / query UNCLAIMED

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

48963 0 0 TypeScript
2023-12-04 14:16:18 +01:00
---
id: infiniteQueryOptions
title: infiniteQueryOptions
---
```tsx
infiniteQueryOptions({
queryKey,
...options,
2023-12-04 14:16:18 +01:00
})
```
**Options**
You can generally pass everything to `infiniteQueryOptions` that you can also pass to [`useInfiniteQuery`](./useInfiniteQuery.md). 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.
2023-12-04 14:16:18 +01:00
- `queryKey: QueryKey`
- **Required**
- The query key to generate options for.
See [useInfiniteQuery](./useInfiniteQuery.md) for more information.