Open History to see the last commit
1---
2id: InfiniteData
3title: InfiniteData
4---
5β
6Defined in: [packages/query-core/src/types.ts:315](https://github.com/TanStack/query/blob/main/packages/query-core/src/types.ts#L315)
7β
8The data shape of an infinite query: every page fetched so far, plus the page param each one was fetched with.
9`pages` and `pageParams` are index-aligned β `pageParams[i]` is the param that produced `pages[i]`.
10β
11## Type Parameters
12β
13### TData
14β
15`TData`
16β
17### TPageParam
18β
19`TPageParam` = `unknown`
20β
21## Properties
22β
23| Property | Type | Description |
24| ------ | ------ | ------ |
25| <a id="property-pageparams"></a> `pageParams` | `TPageParam`[] | The page param each page was fetched with, aligned by index with `pages`. |
26| <a id="property-pages"></a> `pages` | `TData`[] | The data of every page fetched so far, in order. |