Open History to see the last commit
1---
2id: injectIsMutating
3title: injectIsMutating
4---
5β
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7β
8```ts
9function injectIsMutating(filters?: () => MutationFilters): Signal<number>;
10```
11β
12Defined in: [packages/angular-query/src/inject-is-mutating.ts:15](https://github.com/TanStack/query/blob/main/packages/angular-query/src/inject-is-mutating.ts#L15)
13β
14Injects a signal that tracks the number of mutations that your application currently has `pending`
15(useful for app-wide loading indicators).
16β
17Can be used for app-wide loading indicators.
18β
19## Parameters
20β
21### filters?
22β
23() => [`MutationFilters`](../interfaces/MutationFilters.md)
24β
25A reactive factory for the filters.
26β
27<a id="filters-properties"></a>
28β
29#### `filters` properties
30β
31| Property | Type | Description |
32| ------ | ------ | ------ |
33| <a id="filters-property-exact"></a> `exact?` | `boolean` | Match mutation key exactly |
34| <a id="filters-property-mutationkey"></a> `mutationKey?` | readonly `unknown`[] | Include mutations matching this mutation key |
35| <a id="filters-property-predicate"></a> `predicate?` | (`mutation`: [`Mutation`](../classes/Mutation.md)\<`TData`, `TError`, `TVariables`, `TOnMutateResult`\>) => `boolean` | Include mutations matching this predicate function |
36| <a id="filters-property-status"></a> `status?` | `"error"` \| `"pending"` \| `"success"` \| `"idle"` | Filter by mutation status |
37β
38## Returns
39β
40`Signal`\<`number`\>
41β
42A read-only signal with the number of fetching mutations.