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

injectIsRestoring.md

21 lines572 Bytes

1---
2id: injectIsRestoring
3title: injectIsRestoring
4---
5​
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7​
8```ts
9function injectIsRestoring(): Signal<boolean>;
10```
11​
12Defined in: [packages/angular-query/src/inject-is-restoring.ts:21](https://github.com/TanStack/query/blob/main/packages/angular-query/src/inject-is-restoring.ts#L21)
13​
14Injects a readonly signal that is true while the persistence integration restores
15cached query data. Returns false when no restoration is in progress.
16​
17## Returns
18​
19`Signal`\<`boolean`\>
20​
21The current restoration state.