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
package/dist/mobx.esm.js
CHANGED
|
@@ -1973,7 +1973,7 @@ function warnAboutDerivationWithoutDependencies(derivation) {
|
|
|
1973
1973
|
return;
|
|
1974
1974
|
}
|
|
1975
1975
|
|
|
1976
|
-
if (
|
|
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;
|