feat: init doc monitor (#3320)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-07-20 02:44:50 +00:00
1 parent 27edd7cd93
commit 604b53d9a4
20 files changed
+145 -76

No files matched your search

+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);
}