Open History to see the last commit
function injectMutationState<TResult = MutationState<unknown, Error, unknown, unknown>, TMutation extends Mutation<any, any, any, any> = MutationTypeFromResult<TResult>>(options?: () => MutationStateOptions<TResult, TMutation>): Signal<TResult[]>;
Defined in: packages/angular-query/src/inject-mutation-state.ts:70
Injects a signal that tracks the state of all mutations.
Type Parameters#
TResult#
TResult = MutationState<unknown, Error, unknown, unknown>
TMutation#
TMutation extends Mutation<any, any, any, any> = MutationTypeFromResult<TResult>
Parameters#
options?#
() => MutationStateOptions<TResult, TMutation>
A function that returns mutation state options.
options properties#
| Property | Type | Description |
|---|---|---|
filters? | MutationFilters | Restricts the mutation cache entries included in the result. |
select? | (mutation: TMutation) => TResult | Maps each matching mutation to the value exposed in the result signal. |
Returns#
Signal<TResult[]>
The signal that tracks the state of all mutations.