From f208988cc41bf9114196b99df25fdc39bc04d4f5 Mon Sep 17 00:00:00 2001 From: arvinxx Date: Tue, 12 Mar 2024 00:28:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20wip:=20sync=20with=20local?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 ++ src/libs/sync/index.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c898827553aeb..ee798fb8e0388 100644 --- a/package.json +++ b/package.json @@ -146,6 +146,8 @@ "use-merge-value": "^1", "utility-types": "^3", "uuid": "^9", + "y-indexeddb": "^9.0.12", + "y-webrtc": "^10.3.0", "yaml": "^2", "yjs": "^13.6.14", "zod": "^3", diff --git a/src/libs/sync/index.ts b/src/libs/sync/index.ts index d573ad4279200..052c373c61e84 100644 --- a/src/libs/sync/index.ts +++ b/src/libs/sync/index.ts @@ -84,7 +84,7 @@ class SyncBus { const pools = Array.from(event.keys).map(async ([id, payload]) => { const item: any = yItemMap.get(id); - if (item._internalUpdate) { + if (item?._internalUpdate) { return; }