* Returns the number of queries in the cache that are currently fetching, optionally * matching a set of filters. This includes background-fetching, loading new pages, and * loading more infinite query results. * * @example * ```ts * if (queryClient.isFetching()) { * console.l
(
filters?: TQueryFilters,
)
| 148 | * ``` |
| 149 | */ |
| 150 | isFetching<TQueryFilters extends QueryFilters<any> = QueryFilters>( |
| 151 | filters?: TQueryFilters, |
| 152 | ): number { |
| 153 | return this.#queryCache.findAll({ ...filters, fetchStatus: 'fetching' }) |
| 154 | .length |
| 155 | } |
| 156 | |
| 157 | /** |
| 158 | * Returns the number of mutations in the cache that are currently pending, optionally |
no test coverage detected