Defined in: packages/query-core/src/types.ts:364
TQueryFnData = unknown
TPageParam#
TPageParam = unknown
| Property | Type | Description |
|---|
| getNextPageParam | (lastPage: TQueryFnData, allPages: TQueryFnData[], lastPageParam: TPageParam, allPageParams: TPageParam[]) => 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. |
| getPreviousPageParam? | (firstPage: TQueryFnData, allPages: TQueryFnData[], firstPageParam: TPageParam, allPageParams: TPageParam[]) => 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. |
| initialPageParam | TPageParam | - |