ralph/collaboration-and-character-variables #8

Merged
GHMiranda merged 6 commits from ralph/collaboration-and-character-variables into developing 2026-01-24 00:00:47 +00:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit 6bc4e32fde - Show all commits

View File

@ -27,16 +27,14 @@ export class CRDTManager {
this.edgesMap = this.doc.getMap('edges')
this.callbacks = callbacks
// Listen for remote Yjs document changes
// Schedule persistence on local Yjs document changes
this.nodesMap.observe(() => {
if (this.isApplyingRemote) return
this.notifyNodesChange()
this.schedulePersist()
})
this.edgesMap.observe(() => {
if (this.isApplyingRemote) return
this.notifyEdgesChange()
this.schedulePersist()
})