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/CHANGELOG.md +18 -0
- package/dist/api/intercept.d.ts +1 -1
- package/dist/api/observe.d.ts +1 -1
- package/dist/core/reaction.d.ts +2 -2
- package/dist/mobx.cjs.development.js +1 -5
- package/dist/mobx.cjs.development.js.map +1 -1
- package/dist/mobx.cjs.production.min.js +1 -1
- package/dist/mobx.cjs.production.min.js.map +1 -1
- package/dist/mobx.esm.development.js +1 -5
- package/dist/mobx.esm.development.js.map +1 -1
- package/dist/mobx.esm.js +1 -5
- package/dist/mobx.esm.js.map +1 -1
- package/dist/mobx.esm.production.min.js +1 -1
- package/dist/mobx.esm.production.min.js.map +1 -1
- package/dist/mobx.umd.development.js +1 -5
- package/dist/mobx.umd.development.js.map +1 -1
- package/dist/mobx.umd.production.min.js +1 -1
- package/dist/mobx.umd.production.min.js.map +1 -1
- package/dist/types/observableset.d.ts +2 -2
- package/package.json +1 -1
- package/src/api/intercept.ts +1 -1
- package/src/api/observe.ts +1 -1
- package/src/core/derivation.ts +5 -1
- package/src/core/reaction.ts +2 -2
- package/src/types/observableset.ts +2 -2
|
@@ -1962,7 +1962,7 @@ function warnAboutDerivationWithoutDependencies(derivation) {
|
|
|
1962
1962
|
return;
|
|
1963
1963
|
}
|
|
1964
1964
|
|
|
1965
|
-
if (
|
|
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;
|