injectIsMutating

Function: injectIsMutating()

ts
function injectIsMutating(filters?, injector?): Signal<number>
function injectIsMutating(filters?, injector?): Signal<number>

Injects a signal that tracks the number of mutations that your application is fetching.

Can be used for app-wide loading indicators

Parameters

filters?: MutationFilters

The filters to apply to the query.

injector?: Injector

The Angular injector to use.

Returns

Signal<number>

signal with number of fetching mutations.

Defined in

inject-is-mutating.ts:16

Want to Skip the Docs?
Query.gg - The Official React Query Course
“This course is the best way to learn how to use React Query in real-world applications.”—Tanner Linsley
Get the course