* @deprecated Use queryClient.infiniteQuery(options) instead. This method will be removed in the next major version.
(
options: FetchInfiniteQueryOptions<
TQueryFnData,
TError,
TData,
TQueryKey,
TPageParam
>,
)
| 693 | * @deprecated Use queryClient.infiniteQuery(options) instead. This method will be removed in the next major version. |
| 694 | */ |
| 695 | fetchInfiniteQuery< |
| 696 | TQueryFnData, |
| 697 | TError = DefaultError, |
| 698 | TData = TQueryFnData, |
| 699 | TQueryKey extends QueryKey = QueryKey, |
| 700 | TPageParam = unknown, |
| 701 | >( |
| 702 | options: FetchInfiniteQueryOptions< |
| 703 | TQueryFnData, |
| 704 | TError, |
| 705 | TData, |
| 706 | TQueryKey, |
| 707 | TPageParam |
| 708 | >, |
| 709 | ): Promise<InfiniteData<TData, TPageParam>> { |
| 710 | options._type = 'infinite' |
| 711 | // eslint-disable-next-line no-restricted-syntax |
| 712 | return this.fetchQuery(options as any) |
| 713 | } |
| 714 | |
| 715 | /** |
| 716 | * @deprecated Use queryClient.infiniteQuery(options) instead. You can swallow errors with `.catch(noop)`. This method will be removed in the next major version. |
no test coverage detected