Skip to content
0

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 ​

Extended by ​

Type Parameters ​

Type ParameterDefault type
TQueryFnDataunknown
TPageParamunknown

Properties ​

PropertyTypeDescriptionInherited fromDefined in
getNextPageParam(lastPage, allPages, lastPageParam, allPageParams) => TPageParam | null | undefinedThis 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 | undefinedThis 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
initialPageParamTPageParamThe 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.initialPageParamnode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:1999

Released under the MIT License.