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

InitialPageParam.md

22 lines840 Bytes

1---
2id: InitialPageParam
3title: InitialPageParam
4---
5​
6Defined in: [packages/query-core/src/types.ts:392](https://github.com/TanStack/query/blob/main/packages/query-core/src/types.ts#L392)
7​
8## Extended by
9​
10- [`InfiniteQueryPageParamsOptions`](InfiniteQueryPageParamsOptions.md)
11​
12## Type Parameters
13​
14### TPageParam
15​
16`TPageParam` = `unknown`
17​
18## Properties
19​
20| Property | Type | Description |
21| ------ | ------ | ------ |
22| <a id="initialpageparam"></a> `initialPageParam` | `TPageParam` | The page param to start from when an infinite query has no pages yet. It is passed to `queryFn` as `pageParam` for the first page; every page after that gets the value returned by `getNextPageParam` or `getPreviousPageParam`. It only applies while the query has no pages: once a first page exists, refetching starts from that page's own param instead. |