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

Method isFetching

packages/query-core/src/queryClient.ts:107–112  ·  view source on GitHub ↗
(
    filters?: TQueryFilters,
  )

Source from the content-addressed store, hash-verified

105 }
106
107 isFetching<TQueryFilters extends QueryFilters<any> = QueryFilters>(
108 filters?: TQueryFilters,
109 ): number {
110 return this.#queryCache.findAll({ ...filters, fetchStatus: 'fetching' })
111 .length
112 }
113
114 isMutating<
115 TMutationFilters extends MutationFilters<any, any> = MutationFilters,

Callers 12

WithKnownParametersFunction · 0.45
WithIdentifiersFunction · 0.45
WithKnownParametersFunction · 0.45
WithIdentifiersFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45

Calls 1

findAllMethod · 0.45

Tested by

no test coverage detected