MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / applyDocUpdate

Function applyDocUpdate

apps/client/src/code/pages/utils.ts:29–35  ·  view source on GitHub ↗
(doc: Y.Doc, update: Uint8Array, origin?: any)

Source from the content-addressed store, hash-verified

27}
28
29export function applyDocUpdate(doc: Y.Doc, update: Uint8Array, origin?: any) {
30 try {
31 Y.applyUpdateV2(doc, update, origin);
32 } catch (error) {
33 mainLogger.error(error);
34 }
35}
36
37export function revertToSnapshot(doc: Y.Doc, snapshotUpdate: Uint8Array) {
38 const auxDoc = createPageDoc();

Callers 1

revertToSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected