Open History to see the last commit
1---
2id: injectIsFetching
3title: injectIsFetching
4---
5β
6# Function: injectIsFetching()
7β
8```ts
9function injectIsFetching(filters?, injector?): Signal<number>
10```
11β
12Injects a signal that tracks the number of queries that your application is loading or
13fetching in the background.
14β
15Can be used for app-wide loading indicators
16β
17## Parameters
18β
19β’ **filters?**: `QueryFilters`
20β
21The filters to apply to the query.
22β
23β’ **injector?**: `Injector`
24β
25The Angular injector to use.
26β
27## Returns
28β
29`Signal`\<`number`\>
30β
31signal with number of loading or fetching queries.
32β
33## Defined in
34β
35[inject-is-fetching.ts:17](https://github.com/TanStack/query/blob/dac5da5416b82b0be38a8fb34dde1fc6670f0a59/packages/angular-query-experimental/src/inject-is-fetching.ts#L17)