diff --git a/app/scenes/Document/components/MultiplayerEditor.tsx b/app/scenes/Document/components/MultiplayerEditor.tsx index f0b5d659c..83341155f 100644 --- a/app/scenes/Document/components/MultiplayerEditor.tsx +++ b/app/scenes/Document/components/MultiplayerEditor.tsx @@ -175,7 +175,7 @@ function MultiplayerEditor({ onSynced, ...props }: Props, ref: any) { window.removeEventListener("wheel", finishObserving); window.removeEventListener("scroll", syncScrollPosition); provider?.destroy(); - localProvider?.destroy(); + void localProvider?.destroy(); setRemoteProvider(null); ui.setMultiplayerStatus(undefined); }; @@ -190,6 +190,7 @@ function MultiplayerEditor({ onSynced, ...props }: Props, ref: any) { token, currentUser.id, isMounted, + auth, ]); const user = React.useMemo( diff --git a/package.json b/package.json index 0ae6a47e3..e4a5260ac 100644 --- a/package.json +++ b/package.json @@ -219,7 +219,7 @@ "vite-plugin-pwa": "^0.14.4", "winston": "^3.10.0", "ws": "^7.5.3", - "y-indexeddb": "^9.0.9", + "y-indexeddb": "^9.0.11", "y-protocols": "^1.0.5", "yjs": "^13.6.1", "zod": "^3.21.4" diff --git a/yarn.lock b/yarn.lock index 9a343ad76..5d5566800 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9164,7 +9164,7 @@ levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" -lib0@^0.2.35, lib0@^0.2.42, lib0@^0.2.46, lib0@^0.2.47, lib0@^0.2.74: +lib0@^0.2.42, lib0@^0.2.46, lib0@^0.2.47, lib0@^0.2.74: version "0.2.74" resolved "https://registry.yarnpkg.com/lib0/-/lib0-0.2.74.tgz#7a4cc816a0420e76de85009423c8ab63655ff817" integrity sha512-roj9i46/JwG5ik5KNTkxP2IytlnrssAkD/OhlAVtE+GqectrdkfR+pttszVLrOzMDeXNs1MPt6yo66MUolWSiA== @@ -13714,12 +13714,12 @@ xtend@^4.0.0, xtend@~4.0.0, xtend@~4.0.1: resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== -y-indexeddb@^9.0.9: - version "9.0.9" - resolved "https://registry.yarnpkg.com/y-indexeddb/-/y-indexeddb-9.0.9.tgz#fd360f6b62ce1b2d4127671fe73b4feb08de70b2" - integrity sha512-GcJbiJa2eD5hankj46Hea9z4hbDnDjvh1fT62E5SpZRsv8GcEemw34l1hwI2eknGcv5Ih9JfusT37JLx9q3LFg== +y-indexeddb@^9.0.11: + version "9.0.11" + resolved "https://registry.yarnpkg.com/y-indexeddb/-/y-indexeddb-9.0.11.tgz#eb4e4a1816caae9a2c906e64e7b41f78e0d75fda" + integrity sha512-HOKQ70qW1h2WJGtOKu9rE8fbX86ExVZedecndMuhwax3yM4DQsQzCTGHt/jvTrFZr/9Ahvd8neD6aZ4dMMjtdg== dependencies: - lib0 "^0.2.35" + lib0 "^0.2.74" y-protocols@^1.0.5: version "1.0.5"