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
|
@@ -1968,7 +1968,7 @@
|
|
|
1968
1968
|
return;
|
|
1969
1969
|
}
|
|
1970
1970
|
|
|
1971
|
-
if (
|
|
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;
|