mobx 6.8.0 → 6.9.1

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.
@@ -464,6 +464,9 @@
464
464
  _proto.reportChanged = function reportChanged() {
465
465
  startBatch();
466
466
  propagateChanged(this);
467
+ // We could update state version only at the end of batch,
468
+ // but we would still have to switch some global flag here to signal a change.
469
+ globalState.stateVersion = globalState.stateVersion < Number.MAX_SAFE_INTEGER ? globalState.stateVersion + 1 : Number.MIN_SAFE_INTEGER;
467
470
  endBatch();
468
471
  };
469
472
  _proto.toString = function toString() {
@@ -1830,6 +1833,7 @@
1830
1833
  this.useProxies = true;
1831
1834
  this.verifyProxies = false;
1832
1835
  this.safeDescriptors = true;
1836
+ this.stateVersion = Number.MIN_SAFE_INTEGER;
1833
1837
  };
1834
1838
  var canMergeGlobalState = true;
1835
1839
  var isolateCalled = false;