Open History to see the last commit
1---
2id: useIsRestoring
3title: useIsRestoring
4---
5β
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7β
8```ts
9function useIsRestoring(): Accessor<boolean>;
10```
11β
12Defined in: [packages/solid-query/src/isRestoring.ts:12](https://github.com/TanStack/query/blob/main/packages/solid-query/src/isRestoring.ts#L12)
13β
14If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` primitive alongside it to
15check if a restore is currently in progress. `useQuery` and friends also check this internally to avoid
16race conditions between the restore and mounting queries.
17β
18## Returns
19β
20`Accessor`\<`boolean`\>
21β
22An accessor that reads `true` while a persisted client is being restored, `false` otherwise.