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.
@@ -372,10 +372,13 @@ var setAtom = (atom, next, target) => {
372
372
  const update = { oldValue, newValue };
373
373
  if (target.transactionMeta === null) {
374
374
  emitUpdate(atom, update, target);
375
- } else if (target.transactionMeta.phase === `applying` && target.parent) {
376
- emitUpdate(atom, update, target.parent);
377
- } else {
375
+ } else if (target.on.transactionApplying && target.parent) {
378
376
  stowUpdate(atom, update, target);
377
+ if (atom.key.startsWith(`*`)) {
378
+ const mutableKey = atom.key.slice(1);
379
+ const mutable = target.valueMap.get(mutableKey);
380
+ mutable.do(update.newValue);
381
+ }
379
382
  }
380
383
  };
381
384