(
options: InfiniteQueryExecuteOptions<
TQueryFnData,
TError,
TData,
TQueryKey,
TPageParam
>,
)
| 435 | } |
| 436 | |
| 437 | infiniteQuery< |
| 438 | TQueryFnData, |
| 439 | TError = DefaultError, |
| 440 | TData = InfiniteData<TQueryFnData>, |
| 441 | TQueryKey extends QueryKey = QueryKey, |
| 442 | TPageParam = unknown, |
| 443 | >( |
| 444 | options: InfiniteQueryExecuteOptions< |
| 445 | TQueryFnData, |
| 446 | TError, |
| 447 | TData, |
| 448 | TQueryKey, |
| 449 | TPageParam |
| 450 | >, |
| 451 | ): Promise< |
| 452 | Array<TData> extends Array<InfiniteData<TQueryFnData>> |
| 453 | ? InfiniteData<TQueryFnData, TPageParam> |
| 454 | : TData |
| 455 | > { |
| 456 | options._type = 'infinite' |
| 457 | return this.query(options as any) |
| 458 | } |
| 459 | |
| 460 | /** |
| 461 | * @deprecated Use queryClient.infiniteQuery(options) instead. This method will be removed in the next major version. |
no test coverage detected