Web Workers - Agrejus/pouchdb-entity-fabric GitHub Wiki

When pushing Proxy classes (entities) to a WebWorker, structuredCloning will fail because Proxy classes cannot be deeply cloned

Work Around - override structuredClone and clone the proxy properly by called DataContext.asUntracked()