# injectIsRestoring

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

```ts
function injectIsRestoring(): Signal<boolean>;
```

Defined in: [packages/angular-query/src/inject-is-restoring.ts:23](https://github.com/TanStack/query/blob/main/packages/angular-query/src/inject-is-restoring.ts#L23)

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