Open History to see the last commit
1---
2id: injectIsRestoring
3title: injectIsRestoring
4---
5β
6# Function: injectIsRestoring()
7β
8```ts
9function injectIsRestoring(options?): Signal<boolean>;
10```
11β
12Defined in: [inject-is-restoring.ts:32](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-is-restoring.ts#L32)
13β
14Injects a signal that tracks whether a restore is currently in progress. [injectQuery](injectQuery.md) and friends also check this internally to avoid race conditions between the restore and initializing queries.
15β
16## Parameters
17β
18### options?
19β
20`InjectIsRestoringOptions`
21β
22Options for injectIsRestoring.
23β
24## Returns
25β
26`Signal`\<`boolean`\>
27β
28readonly signal with boolean that indicates whether a restore is in progress.