Open History to see the last commit
1---
2id: provideIsRestoring
3title: provideIsRestoring
4---
5β
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7β
8```ts
9function provideIsRestoring(isRestoring: Signal<boolean>): Provider;
10```
11β
12Defined in: [packages/angular-query-experimental/src/inject-is-restoring.ts:48](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-is-restoring.ts#L48)
13β
14Registers a provider for the restore state read by `injectIsRestoring`. Wire this up wherever you drive a
15restore yourself β e.g. a persist-client integration β so `injectQuery` and friends can defer subscribing
16to their observer (avoiding a race with the restore) until the restore signal flips back to `false`.
17β
18## Parameters
19β
20### isRestoring
21β
22`Signal`\<`boolean`\>
23β
24A readonly `Signal<boolean>` that tracks the restore state.
25β
26## Returns
27β
28`Provider`
29β
30A provider for the `isRestoring` signal.