( options: InfiniteQueryPageParamsOptions<any, any>, data?: InfiniteData<unknown>, )
| 168 | * Checks if there is a previous page. |
| 169 | */ |
| 170 | export function hasPreviousPage( |
| 171 | options: InfiniteQueryPageParamsOptions<any, any>, |
| 172 | data?: InfiniteData<unknown>, |
| 173 | ): boolean { |
| 174 | if (!data || !options.getPreviousPageParam) return false |
| 175 | return getPreviousPageParam(options, data) != null |
| 176 | } |
no test coverage detected