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

IsRestoringProvider.md

13 lines454 Bytes

1---
2id: IsRestoringProvider
3title: IsRestoringProvider
4---
5​
6```ts
7const IsRestoringProvider: Provider<boolean> = IsRestoringContext.Provider;
8```
9​
10Defined in: [packages/react-query/src/IsRestoringProvider.ts:18](https://github.com/TanStack/query/blob/main/packages/react-query/src/IsRestoringProvider.ts#L18)
11​
12The Provider that `PersistQueryClientProvider` uses to signal whether a persisted client is currently
13being restored, read by `useIsRestoring`.