Open History to see the last commit
1---
2id: InfiniteQueryPageParamsOptions
3title: InfiniteQueryPageParamsOptions
4---
5β
6Defined in: packages/query-core/dist-ts/src/types.d.ts:197
7β
8## Extends
9β
10- [`InitialPageParam`](InitialPageParam.md)\<`TPageParam`\>
11β
12## Extended by
13β
14- [`InfiniteQueryObserverOptions`](InfiniteQueryObserverOptions.md)
15β
16## Type Parameters
17β
18### TQueryFnData
19β
20`TQueryFnData` = `unknown`
21β
22### TPageParam
23β
24`TPageParam` = `unknown`
25β
26## Properties
27β
28| Property | Type | Description |
29| ------ | ------ | ------ |
30| <a id="getnextpageparam"></a> `getNextPageParam` | [`GetNextPageParamFunction`](../type-aliases/GetNextPageParamFunction.md)\<`TPageParam`, `TQueryFnData`\> | This function can be set to automatically get the next cursor for infinite queries. The result will also be used to determine the value of `hasNextPage`. |
31| <a id="getpreviouspageparam"></a> `getPreviousPageParam?` | [`GetPreviousPageParamFunction`](../type-aliases/GetPreviousPageParamFunction.md)\<`TPageParam`, `TQueryFnData`\> | This function can be set to automatically get the previous cursor for infinite queries. The result will also be used to determine the value of `hasPreviousPage`. |
32| <a id="initialpageparam"></a> `initialPageParam` | `TPageParam` | - |