Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

infiniteQueryOptions.md

19 lines517 Bytes

1---
2id: infiniteQueryOptions
3title: infiniteQueryOptions
4---
5​
6```tsx
7infiniteQueryOptions({
8 queryKey,
9 ...options,
10})
11```
12​
13**Options**
14​
15You can generally pass everything to `queryOptions` that you can also pass to [`useInfiniteQuery`](../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.
16​
17- `queryKey: QueryKey`
18 - **Required**
19 - The query key to generate options for.