* 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. * @param filters - Narrows down which fetching queries are counted. Without filt
(filters?: Omit<QueryFilters, 'fetchStatus'>)
| 152 | * ``` |
| 153 | */ |
| 154 | isFetching(filters?: Omit<QueryFilters, 'fetchStatus'>): number { |
| 155 | return this.#queryCache.findAll({ ...filters, fetchStatus: 'fetching' }) |
| 156 | .length |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Returns the number of mutations in the cache that are currently pending, optionally |
no test coverage detected