fix: correctly notify parent fields when patching

This commit is contained in:
Greg Johnston
2025-03-27 20:20:04 -04:00
parent a54e3fdb40
commit 7f51a46b1a

View File

@@ -35,8 +35,7 @@ where
// don't track the writer for the whole store
writer.untrack();
let mut notify = |path: &StorePath| {
self.get_trigger(path.to_owned()).this.notify();
self.get_trigger(path.to_owned()).children.notify();
self.triggers_for_path(path.to_owned()).notify();
};
writer.patch_field(new, &path, &mut notify);
}