API reference › @evolu/common › local‑first/Shared › CreateStoredWorkerDep

Defined in: packages/common/src/local-first/Shared.ts:719

Starts the worker that serves the stored databases of every instance created through these deps, and the memory databases of instances without a worker of their own.

createEvoluDeps calls it at most once, after the platform's DevicePersistenceDep answers. A thrown error becomes the deps' EvoluErrorDep.evoluError.

Properties

createStoredWorker

readonly createStoredWorker: () => SharedWorker;

Defined in: packages/common/src/local-first/Shared.ts:720