function injectMutationState<TResult>(
mutationStateOptionsFn,
options?,
): Signal<TResult[]>
function injectMutationState<TResult>(
mutationStateOptionsFn,
options?,
): Signal<TResult[]>
Injects a signal that tracks the state of all mutations.
• TResult = MutationState<unknown, Error, unknown, unknown>
• mutationStateOptionsFn = ...
A function that returns mutation state options.
• options?: InjectMutationStateOptions
The Angular injector to use.
Signal<TResult[]>
The signal that tracks the state of all mutations.
“This course is the best way to learn how to use React Query in real-world applications.”—Tanner LinsleyGet the course