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

Method prefetchInfiniteQuery

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

* @deprecated Use queryClient.infiniteQuery(options) instead. You can swallow errors with `.catch(noop)`. 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

483 * @deprecated Use queryClient.infiniteQuery(options) instead. You can swallow errors with `.catch(noop)`. This method will be removed in the next major version.
484 */
485 prefetchInfiniteQuery<
486 TQueryFnData,
487 TError = DefaultError,
488 TData = TQueryFnData,
489 TQueryKey extends QueryKey = QueryKey,
490 TPageParam = unknown,
491 >(
492 options: FetchInfiniteQueryOptions<
493 TQueryFnData,
494 TError,
495 TData,
496 TQueryKey,
497 TPageParam
498 >,
499 ): Promise<void> {
500 return this.fetchInfiniteQuery(options).then(noop).catch(noop)
501 }
502
503 /**
504 * @deprecated Use queryClient.infiniteQuery({ ...options, staleTime: 'static' }) instead. This method will be removed in the next major version.

Callers 9

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

fetchInfiniteQueryMethod · 0.95

Tested by

no test coverage detected