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

injectIsRestoring.md

28 lines724 Bytes

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.