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

InfiniteQueryPageParamsOptions.md

66 lines1.7 KB

Interface: InfiniteQueryPageParamsOptions<TQueryFnData, TPageParam>

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

Extends

Extended by

Type Parameters

TQueryFnData

TQueryFnData = unknown

TPageParam

TPageParam = unknown

Properties

getNextPageParam

getNextPageParam: GetNextPageParamFunction<TPageParam, TQueryFnData>;

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

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?

optional getPreviousPageParam: GetPreviousPageParamFunction<TPageParam, TQueryFnData>;

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

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.


initialPageParam

initialPageParam: TPageParam;

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

Inherited from

InitialPageParam.initialPageParam