Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

injectIsFetching.md

35 lines741 Bytes

1---
2id: injectIsFetching
3title: injectIsFetching
4---
5​
6```ts
7function injectIsFetching(filters?, options?): Signal<number>;
8```
9​
10Defined in: [inject-is-fetching.ts:31](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-is-fetching.ts#L31)
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?
20​
21`QueryFilters`\<readonly `unknown`[]\>
22​
23The filters to apply to the query.
24​
25### options?
26​
27[`InjectIsFetchingOptions`](../interfaces/InjectIsFetchingOptions.md)
28​
29Additional configuration
30​
31## Returns
32​
33`Signal`\<`number`\>
34​
35signal with number of loading or fetching queries.