Open History to see the last commit
1---
2id: InitialPageParam
3title: InitialPageParam
4---
5β
6Defined in: [packages/query-core/src/types.ts:470](https://github.com/TanStack/query/blob/main/packages/query-core/src/types.ts#L470)
7β
8Holds the `initialPageParam` option that every infinite query requires.
9β
10## Extended by
11β
12- [`InfiniteQueryPageParamsOptions`](InfiniteQueryPageParamsOptions.md)
13β
14## Type Parameters
15β
16### TPageParam
17β
18`TPageParam` = `unknown`
19β
20## Properties
21β
22| Property | Type | Description |
23| ------ | ------ | ------ |
24| <a id="property-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. |