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

Method fetchInfiniteQuery

packages/query-core/src/queryClient.ts:463–480  ·  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

461 * @deprecated Use queryClient.infiniteQuery(options) instead. This method will be removed in the next major version.
462 */
463 fetchInfiniteQuery<
464 TQueryFnData,
465 TError = DefaultError,
466 TData = TQueryFnData,
467 TQueryKey extends QueryKey = QueryKey,
468 TPageParam = unknown,
469 >(
470 options: FetchInfiniteQueryOptions<
471 TQueryFnData,
472 TError,
473 TData,
474 TQueryKey,
475 TPageParam
476 >,
477 ): Promise<InfiniteData<TData, TPageParam>> {
478 options._type = 'infinite'
479 return this.fetchQuery(options as any)
480 }
481
482 /**
483 * @deprecated Use queryClient.infiniteQuery(options) instead. You can swallow errors with `.catch(noop)`. This method will be removed in the next major version.

Callers 10

prefetchInfiniteQueryMethod · 0.95
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
hydration.test.tsxFile · 0.45

Calls 1

fetchQueryMethod · 0.95

Tested by

no test coverage detected