@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
package/fesm5/ngxs-store.js
CHANGED
|
@@ -1916,12 +1916,14 @@ var InternalDispatcher = /** @class */ (function () {
|
|
|
1916
1916
|
*/
|
|
1917
1917
|
function (action) {
|
|
1918
1918
|
var _this = this;
|
|
1919
|
-
|
|
1920
|
-
var type = getActionTypeFromInstance(action);
|
|
1921
|
-
if (!type) {
|
|
1919
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
1922
1920
|
/** @type {?} */
|
|
1923
|
-
var
|
|
1924
|
-
|
|
1921
|
+
var type = getActionTypeFromInstance(action);
|
|
1922
|
+
if (!type) {
|
|
1923
|
+
/** @type {?} */
|
|
1924
|
+
var error = new Error("This action doesn't have a type property: " + action.constructor.name);
|
|
1925
|
+
return throwError(error);
|
|
1926
|
+
}
|
|
1925
1927
|
}
|
|
1926
1928
|
/** @type {?} */
|
|
1927
1929
|
var prevState = this._stateStream.getValue();
|