Open History to see the last commit
function injectIsMutating(filters?: () => MutationFilters): Signal<number>;
Defined in: packages/angular-query/src/inject-is-mutating.ts:15
Injects a signal that tracks the number of mutations that your application currently has pending
(useful for app-wide loading indicators).
Can be used for app-wide loading indicators.
Parameters#
filters?#
() => MutationFilters
A reactive factory for the filters.
filters properties#
| Property | Type | Description |
|---|---|---|
exact? | boolean | Match mutation key exactly |
mutationKey? | readonly unknown[] | Include mutations matching this mutation key |
predicate? | (mutation: Mutation<TData, TError, TVariables, TOnMutateResult>) => boolean | Include mutations matching this predicate function |
status? | "error" | "pending" | "success" | "idle" | Filter by mutation status |
Returns#
Signal<number>
A read-only signal with the number of fetching mutations.