@ngxs/store 3.7.4-dev.master-38cbcac → 3.7.4-dev.master-a63a5af
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/bundles/ngxs-store.umd.js +7 -5
- package/bundles/ngxs-store.umd.js.map +1 -1
- package/bundles/ngxs-store.umd.min.js +1 -1
- package/bundles/ngxs-store.umd.min.js.map +1 -1
- package/esm2015/src/internal/dispatcher.js +8 -6
- package/esm5/src/internal/dispatcher.js +8 -6
- package/fesm2015/ngxs-store.js +7 -5
- package/fesm2015/ngxs-store.js.map +1 -1
- package/fesm5/ngxs-store.js +7 -5
- package/fesm5/ngxs-store.js.map +1 -1
- package/package.json +1 -1
|
@@ -2134,12 +2134,14 @@
|
|
|
2134
2134
|
*/
|
|
2135
2135
|
function (action) {
|
|
2136
2136
|
var _this = this;
|
|
2137
|
-
|
|
2138
|
-
var type = getActionTypeFromInstance(action);
|
|
2139
|
-
if (!type) {
|
|
2137
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
2140
2138
|
/** @type {?} */
|
|
2141
|
-
var
|
|
2142
|
-
|
|
2139
|
+
var type = getActionTypeFromInstance(action);
|
|
2140
|
+
if (!type) {
|
|
2141
|
+
/** @type {?} */
|
|
2142
|
+
var error = new Error("This action doesn't have a type property: " + action.constructor.name);
|
|
2143
|
+
return rxjs.throwError(error);
|
|
2144
|
+
}
|
|
2143
2145
|
}
|
|
2144
2146
|
/** @type {?} */
|
|
2145
2147
|
var prevState = this._stateStream.getValue();
|