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.
package/dist/mobx.esm.js CHANGED
@@ -1973,7 +1973,7 @@ function warnAboutDerivationWithoutDependencies(derivation) {
1973
1973
  return;
1974
1974
  }
1975
1975
 
1976
- if (globalState.reactionRequiresObservable || derivation.requiresObservable_) {
1976
+ if (typeof derivation.requiresObservable_ === "boolean" ? derivation.requiresObservable_ : globalState.reactionRequiresObservable) {
1977
1977
  console.warn("[mobx] Derivation '" + derivation.name_ + "' is created/updated without reading any observable value.");
1978
1978
  }
1979
1979
  }
@@ -2444,10 +2444,6 @@ var Reaction = /*#__PURE__*/function () {
2444
2444
  name_ = process.env.NODE_ENV !== "production" ? "Reaction@" + getNextId() : "Reaction";
2445
2445
  }
2446
2446
 
2447
- if (requiresObservable_ === void 0) {
2448
- requiresObservable_ = false;
2449
- }
2450
-
2451
2447
  this.name_ = void 0;
2452
2448
  this.onInvalidate_ = void 0;
2453
2449
  this.errorHandler_ = void 0;