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