validateNextState.js 494 B

123456789101112131415
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = function (nextState, reducerName, action) {
  6. // eslint-disable-next-line no-undefined
  7. if (nextState === undefined) {
  8. throw new Error('Reducer "' + reducerName + '" returned undefined when handling "' + action.type + '" action. To ignore an action, you must explicitly return the previous state.');
  9. }
  10. };
  11. module.exports = exports['default'];
  12. //# sourceMappingURL=validateNextState.js.map