katanakit-js / InfiniteQueryPageParamsOptions
Interface: InfiniteQueryPageParamsOptions<TQueryFnData, TPageParam>
Defined in: node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2001
Extends
InitialPageParam<TPageParam>
Extended by
Type Parameters
| Type Parameter | Default type |
|---|---|
TQueryFnData | unknown |
TPageParam | unknown |
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
getNextPageParam | (lastPage, allPages, lastPageParam, allPageParams) => TPageParam | null | undefined | This function can be set to automatically get the next cursor for infinite queries. The result will also be used to determine the value of hasNextPage. | - | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2011 |
getPreviousPageParam? | (firstPage, allPages, firstPageParam, allPageParams) => TPageParam | null | undefined | This function can be set to automatically get the previous cursor for infinite queries. The result will also be used to determine the value of hasPreviousPage. | - | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2006 |
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. | InitialPageParam.initialPageParam | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:1999 |