feat: init doc monitor (#3320)

This commit is contained in:
Alex Yang
2023-07-20 10:44:50 +08:00
committed by GitHub
parent 27edd7cd93
commit 604b53d9a4
20 changed files with 145 additions and 76 deletions
+2 -2
View File
@@ -309,7 +309,7 @@ export const createIndexedDBProvider = (
const fakeDoc = new Doc();
fakeDoc.transact(() => {
updates.forEach(update => {
applyUpdate(fakeDoc, update);
applyUpdate(fakeDoc, update, indexeddbOrigin);
});
}, indexeddbOrigin);
const newUpdate = diffUpdate(
@@ -330,7 +330,7 @@ export const createIndexedDBProvider = (
);
doc.transact(() => {
updates.forEach(update => {
applyUpdate(doc, update);
applyUpdate(doc, update, indexeddbOrigin);
});
}, indexeddbOrigin);
}