( options: InfiniteQueryPageParamsOptions<any, any>, data?: InfiniteData<unknown>, )
| 157 | * Checks if there is a next page. |
| 158 | */ |
| 159 | export function hasNextPage( |
| 160 | options: InfiniteQueryPageParamsOptions<any, any>, |
| 161 | data?: InfiniteData<unknown>, |
| 162 | ): boolean { |
| 163 | if (!data) return false |
| 164 | return getNextPageParam(options, data) != null |
| 165 | } |
| 166 | |
| 167 | /** |
| 168 | * Checks if there is a previous page. |
no test coverage detected