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

useIsRestoring.md

22 lines731 Bytes

function useIsRestoring(): Accessor<boolean>;

Defined in: packages/solid-query/src/isRestoring.ts:12

If you are using PersistQueryClientProvider, you can also use the useIsRestoring primitive alongside it to check if a restore is currently in progress. useQuery and friends also check this internally to avoid race conditions between the restore and mounting queries.

Returns

Accessor<boolean>

An accessor that reads true while a persisted client is being restored, false otherwise.