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

injectIsRestoring.md

23 lines808 Bytes

function injectIsRestoring(): Signal<boolean>;

Defined in: packages/angular-query/src/inject-is-restoring.ts:23

Injects a signal that tracks whether a restore (e.g. from a persisted client, wired up via withPersistQueryClient) is currently in progress. injectQuery and friends also check this internally to avoid race conditions between the restore and initializing queries.

Returns

Signal<boolean>

A readonly Signal<boolean> β€” true while a restore is in progress, false otherwise (the default when no persistence integration is registered).