TanStack
API Reference

injectIsRestoring

ts
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).