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