atom.io 0.15.5 → 0.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/internal/dist/index.js
CHANGED
|
@@ -352,10 +352,13 @@ var setAtom = (atom, next, target) => {
|
|
|
352
352
|
const update = { oldValue, newValue };
|
|
353
353
|
if (target.transactionMeta === null) {
|
|
354
354
|
emitUpdate(atom, update, target);
|
|
355
|
-
} else if (target.
|
|
356
|
-
emitUpdate(atom, update, target.parent);
|
|
357
|
-
} else {
|
|
355
|
+
} else if (target.on.transactionApplying && target.parent) {
|
|
358
356
|
stowUpdate(atom, update, target);
|
|
357
|
+
if (atom.key.startsWith(`*`)) {
|
|
358
|
+
const mutableKey = atom.key.slice(1);
|
|
359
|
+
const mutable = target.valueMap.get(mutableKey);
|
|
360
|
+
mutable.do(update.newValue);
|
|
361
|
+
}
|
|
359
362
|
}
|
|
360
363
|
};
|
|
361
364
|
|