reactronic 0.23.100 → 0.23.101
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.
|
@@ -589,7 +589,8 @@ class Operation extends Observable {
|
|
|
589
589
|
return ok;
|
|
590
590
|
}
|
|
591
591
|
static canSubscribe(observable, os, m, h, timestamp) {
|
|
592
|
-
|
|
592
|
+
const observableHead = h.head.data[m];
|
|
593
|
+
let result = observable === observableHead || (!os.changeset.sealed && os.former.snapshot.data[m] === observableHead);
|
|
593
594
|
if (result && timestamp !== -1)
|
|
594
595
|
result = !(observable instanceof Operation && timestamp >= observable.obsoleteSince);
|
|
595
596
|
return result;
|