MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / isFetching

Method isFetching

src/queryCore/core/queryClient.ts:95–99  ·  view source on GitHub ↗
(arg1?: QueryKey | QueryFilters, arg2?: QueryFilters)

Source from the content-addressed store, hash-verified

93 isFetching(filters?: QueryFilters): number
94 isFetching(queryKey?: QueryKey, filters?: QueryFilters): number
95 isFetching(arg1?: QueryKey | QueryFilters, arg2?: QueryFilters): number {
96 const [filters] = parseFilterArgs(arg1, arg2)
97 filters.fetching = true
98 return this.queryCache.findAll(filters).length
99 }
100
101 isMutating(filters?: MutationFilters): number {
102 return this.mutationCache.findAll({ ...filters, fetching: true }).length

Callers

nothing calls this directly

Calls 2

parseFilterArgsFunction · 0.90
findAllMethod · 0.45

Tested by

no test coverage detected