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

Method observeMap

apps/client/src/code/pages/page/notes/notes.ts:105–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 }
104
105 observeMap() {
106 (getYjsValue(this.react.collab) as Y.Map<INoteCollabComplete>).observe(
107 (event) => {
108 for (const [noteId, change] of event.changes.keys) {
109 if (change.action === 'delete') {
110 delete this.react.map[noteId];
111 }
112 }
113 },
114 );
115 }
116
117 async create(params: {
118 region: PageRegion;

Callers 1

setupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected