Function
getPreviousPageParam
(
options: InfiniteQueryPageParamsOptions<any>,
{ pages, pageParams }: InfiniteData<unknown>,
)
Source from the content-addressed store, hash-verified
| 145 | } |
| 146 | |
| 147 | function getPreviousPageParam( |
| 148 | options: InfiniteQueryPageParamsOptions<any>, |
| 149 | { pages, pageParams }: InfiniteData<unknown>, |
| 150 | ): unknown | undefined { |
| 151 | return pages.length > 0 |
| 152 | ? options.getPreviousPageParam?.(pages[0], pages, pageParams[0], pageParams) |
| 153 | : undefined |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * Checks if there is a next page. |
Tested by
no test coverage detected