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.
@@ -1968,7 +1968,7 @@
1968
1968
  return;
1969
1969
  }
1970
1970
 
1971
- if (globalState.reactionRequiresObservable || derivation.requiresObservable_) {
1971
+ if (typeof derivation.requiresObservable_ === "boolean" ? derivation.requiresObservable_ : globalState.reactionRequiresObservable) {
1972
1972
  console.warn("[mobx] Derivation '" + derivation.name_ + "' is created/updated without reading any observable value.");
1973
1973
  }
1974
1974
  }
@@ -2439,10 +2439,6 @@
2439
2439
  name_ = "Reaction@" + getNextId() ;
2440
2440
  }
2441
2441
 
2442
- if (requiresObservable_ === void 0) {
2443
- requiresObservable_ = false;
2444
- }
2445
-
2446
2442
  this.name_ = void 0;
2447
2443
  this.onInvalidate_ = void 0;
2448
2444
  this.errorHandler_ = void 0;