( options: InfiniteQueryPageParamsOptions<any, any>, data?: InfiniteData<unknown>, )
| 188 | * @returns `true` if `getNextPageParam` returns a value other than `null` or `undefined`. |
| 189 | */ |
| 190 | export function hasNextPage( |
| 191 | options: InfiniteQueryPageParamsOptions<any, any>, |
| 192 | data?: InfiniteData<unknown>, |
| 193 | ): boolean { |
| 194 | if (!data) return false |
| 195 | return getNextPageParam(options, data) != null |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * Checks if there is a previous page. |
no test coverage detected