injectIsFetching

Function: injectIsFetching()

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

Injects a signal that tracks the number of queries that your application is loading or fetching in the background.

Can be used for app-wide loading indicators

Parameters

filters?: QueryFilters

The filters to apply to the query.

injector?: Injector

The Angular injector to use.

Returns

Signal<number>

signal with number of loading or fetching queries.

Defined in

inject-is-fetching.ts:17

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