diff --git a/npm/raiku-pgs/lib/thread/create-worker-plugin.ts b/npm/raiku-pgs/lib/thread/create-worker-plugin.ts index 79448a99..05ed91d9 100644 --- a/npm/raiku-pgs/lib/thread/create-worker-plugin.ts +++ b/npm/raiku-pgs/lib/thread/create-worker-plugin.ts @@ -142,6 +142,13 @@ export function createWorkerPlugin( const proxy = new Proxy({} as APIPorted, { get(_target, p) { + if (p === "__v_skip") return true // mark raw for vue reactivity + + if (p === "toJSON") { + console.warn("[worker-plugin]: toJSON called but can't control.") + + return () => "{}" + } const worker = workerSession.getWorker() if (p === "Rankings") return put(worker, "get", p.toString())