Open History to see the last commit
1---
2id: useIsRestoring
3title: useIsRestoring
4---
5β
6```ts
7function useIsRestoring(): boolean;
8```
9β
10Defined in: [packages/react-query/src/IsRestoringProvider.ts:12](https://github.com/TanStack/query/blob/main/packages/react-query/src/IsRestoringProvider.ts#L12)
11β
12If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to
13check if a restore is currently in progress. `useQuery` and friends also check this internally to avoid
14race conditions between the restore and mounting queries.
15β
16## Returns
17β
18`boolean`
19β
20`true` while a persisted client is being restored, `false` otherwise.