reactronic 0.22.509 → 0.22.510

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.
@@ -458,7 +458,7 @@ class Operation extends Observable {
458
458
  ctx.bumpBy(os.changeset.timestamp);
459
459
  const t = weak ? -1 : ctx.timestamp;
460
460
  if (!op.subscribeTo(observable, os, m, h, t))
461
- op.markObsoleteDueTo(observable, m, os.changeset, h, BOOT_CAUSE, ctx.timestamp, ctx.reactive);
461
+ op.markObsoleteDueTo(observable, m, h.head.changeset, h, BOOT_CAUSE, ctx.timestamp, ctx.reactive);
462
462
  }
463
463
  }
464
464
  }
@@ -589,7 +589,7 @@ class Operation extends Observable {
589
589
  return ok;
590
590
  }
591
591
  static canSubscribe(observable, os, m, h, timestamp) {
592
- let result = !os.changeset.sealed || observable === h.head.data[m];
592
+ let result = observable === h.head.data[m] || os.former.snapshot == h.head;
593
593
  if (result && timestamp !== -1)
594
594
  result = !(observable instanceof Operation && timestamp >= observable.obsoleteSince);
595
595
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactronic",
3
- "version": "0.22.509",
3
+ "version": "0.22.510",
4
4
  "description": "Reactronic - Transactional Reactive State Management",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",