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

InfiniteQueryPageParamsOptions.md

32 lines1.2 KB

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` | - |