Skip to content

Commit

Permalink
🐛 Allow missing deps on loading initial document
Browse files Browse the repository at this point in the history
  • Loading branch information
phlmn authored and anuejn committed May 2, 2024
1 parent a91c951 commit f1c16dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/editor/automerge_websocket_editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function useAutomergeWebsocketEditor(
} else if (msg_type === MessageSyncType.FullDoc) {
console.info('Received new document');
console.time('automerge');
doc = Automerge.load(msg);
doc = Automerge.load(msg, { allowMissingChanges: true });
console.timeEnd('automerge');
createNewEditor(doc as Automerge.Doc<Document>);
console.info(`ws: ${(bytesReceived / 1e6).toFixed(2)} MB recieved so far`);
Expand Down

0 comments on commit f1c16dd

Please sign in to comment.