Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

InfiniteQueryPageParamsOptions.md

32 lines1.2 KB

Defined in: packages/query-core/dist-ts/src/types.d.ts:197

Extends

Extended by

Type Parameters

TQueryFnData

TQueryFnData = unknown

TPageParam

TPageParam = unknown

Properties

PropertyTypeDescription
getNextPageParamGetNextPageParamFunction<TPageParam, TQueryFnData>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.
getPreviousPageParam?GetPreviousPageParamFunction<TPageParam, TQueryFnData>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.
initialPageParamTPageParam-