API reference › @evolu/common › local‑first/Evolu › isDatabaseDeleted

function isDatabaseDeleted<
  S extends Readonly<
    Record<string, Readonly<Record<string, AnyStandardSchemaV1>>>
  >,
>(evolu: DeviceEvolu<S>): boolean;

Defined in: packages/common/src/local-first/Evolu.ts:4531

Whether the deletion of the database of the Evolu instance disposed it; see Evolu.deleteDatabase. It's also true for an AppOwner's instance that createEvoluApp disposed after a removal of the AppOwner; see EvoluApp.remove. A framework binding checks it before it uses the instance, so a component the app has not replaced yet doesn't throw: React's suspends, and Vue's and Svelte's show no rows.