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

Method fetchInfiniteQuery

packages/query-core/src/queryClient.ts:381–398  ·  view source on GitHub ↗
(
    options: FetchInfiniteQueryOptions<
      TQueryFnData,
      TError,
      TData,
      TQueryKey,
      TPageParam
    >,
  )

Source from the content-addressed store, hash-verified

379 }
380
381 fetchInfiniteQuery<
382 TQueryFnData,
383 TError = DefaultError,
384 TData = TQueryFnData,
385 TQueryKey extends QueryKey = QueryKey,
386 TPageParam = unknown,
387 >(
388 options: FetchInfiniteQueryOptions<
389 TQueryFnData,
390 TError,
391 TData,
392 TQueryKey,
393 TPageParam
394 >,
395 ): Promise<InfiniteData<TData, TPageParam>> {
396 options._type = 'infinite'
397 return this.fetchQuery(options as any)
398 }
399
400 prefetchInfiniteQuery<
401 TQueryFnData,

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