Open History to see the last commit
1---
2id: injectIsRestoring
3title: injectIsRestoring
4---
5β
6```ts
7function injectIsRestoring(options?: InjectIsRestoringOptions): Signal<boolean>;
8```
9β
10Defined in: [packages/angular-query-experimental/src/inject-is-restoring.ts:35](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-is-restoring.ts#L35)
11β
12Injects a signal that tracks whether a restore (e.g. from a persisted client, wired up via
13`provideIsRestoring`) is currently in progress. `injectQuery` and friends also check this internally to
14avoid race conditions between the restore and initializing queries.
15β
16## Parameters
17β
18### options?
19β
20`InjectIsRestoringOptions`
21β
22Additional configuration
23β
24## Returns
25β
26`Signal`\<`boolean`\>
27β
28A readonly `Signal<boolean>` β `true` while a restore is in progress, `false` otherwise (the
29default when no `provideIsRestoring` provider is registered).