MCPcopy Create free account
hub / github.com/TanStack/query / fetchInfiniteQuery

Method fetchInfiniteQuery

packages/query-core/src/queryClient.ts:695–713  ·  view source on GitHub ↗

* @deprecated Use queryClient.infiniteQuery(options) instead. This method will be removed in the next major version.

(
    options: FetchInfiniteQueryOptions<
      TQueryFnData,
      TError,
      TData,
      TQueryKey,
      TPageParam
    >,
  )

Source from the content-addressed store, hash-verified

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.

Callers 9

prefetchInfiniteQueryMethod · 0.95
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45

Calls 1

fetchQueryMethod · 0.95

Tested by

no test coverage detected