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

provideIsRestoring.md

28 lines573 Bytes

1---
2id: provideIsRestoring
3title: provideIsRestoring
4---
5​
6# Function: provideIsRestoring()
7​
8```ts
9function provideIsRestoring(isRestoring): Provider;
10```
11​
12Defined in: [inject-is-restoring.ts:43](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-is-restoring.ts#L43)
13​
14Used by TanStack Query Angular persist client plugin to provide the signal that tracks the restore state
15​
16## Parameters
17​
18### isRestoring
19​
20`Signal`\<`boolean`\>
21​
22a readonly signal that returns a boolean
23​
24## Returns
25​
26`Provider`
27​
28Provider for the `isRestoring` signal