fix(editor): y reactive deep watch (#9818)

Closes: [BS-2193](https://linear.app/affine-design/issue/BS-2193/fix-deep-watcher-of-reactive-yjs-data)
This commit is contained in:
Saul-Mirone
2025-01-21 08:08:01 +00:00
parent 7400cf225f
commit 5783580054
4 changed files with 144 additions and 7 deletions
@@ -222,7 +222,7 @@ export class SyncController {
if (signalKey in this.model) {
this._mutex(() => {
// @ts-expect-error allow magic props
this.model[signalKey].value = this.model[name];
this.model[signalKey].value = y2Native(value);
});
}
},