Open History to see the last commit
Function: injectIsMutating()#
function injectIsMutating(filters?, options?): Signal<number>;
Defined in: inject-is-mutating.ts:30
Injects a signal that tracks the number of mutations that are currently pending in your application.
Can be used for app-wide loading indicators.
Parameters#
filters?#
MutationFilters<unknown, Error, unknown, unknown>
The filters to apply to the mutations.
options?#
Additional configuration.
Returns#
Signal<number>
A read-only signal with the number of pending mutations.