mobx 6.4.0 → 6.5.0

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.
@@ -1962,7 +1962,7 @@ function warnAboutDerivationWithoutDependencies(derivation) {
1962
1962
  return;
1963
1963
  }
1964
1964
 
1965
- if (globalState.reactionRequiresObservable || derivation.requiresObservable_) {
1965
+ if (typeof derivation.requiresObservable_ === "boolean" ? derivation.requiresObservable_ : globalState.reactionRequiresObservable) {
1966
1966
  console.warn("[mobx] Derivation '" + derivation.name_ + "' is created/updated without reading any observable value.");
1967
1967
  }
1968
1968
  }
@@ -2433,10 +2433,6 @@ var Reaction = /*#__PURE__*/function () {
2433
2433
  name_ = "Reaction@" + getNextId() ;
2434
2434
  }
2435
2435
 
2436
- if (requiresObservable_ === void 0) {
2437
- requiresObservable_ = false;
2438
- }
2439
-
2440
2436
  this.name_ = void 0;
2441
2437
  this.onInvalidate_ = void 0;
2442
2438
  this.errorHandler_ = void 0;