Skip to main content

InfiniteData

还没翻译译自英文(tanstack.com)本页 10 段都还没译

Defined in: packages/query-core/src/types.ts:315

The data shape of an infinite query: every page fetched so far, plus the page param each one was fetched with. pages and pageParams are index-aligned — pageParams[i] is the param that produced pages[i].

Type Parameters

TData

TData

TPageParam

TPageParam = unknown

Properties

PropertyTypeDescription
pageParamsTPageParam[]The page param each page was fetched with, aligned by index with pages.
pagesTData[]The data of every page fetched so far, in order.