redux-immutable
Version:
redux-immutable is used to create an equivalent function of Redux combineReducers that works with Immutable.js state.
15 lines (12 loc) • 494 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (nextState, reducerName, action) {
// eslint-disable-next-line no-undefined
if (nextState === undefined) {
throw new Error('Reducer "' + reducerName + '" returned undefined when handling "' + action.type + '" action. To ignore an action, you must explicitly return the previous state.');
}
};
module.exports = exports['default'];
//# sourceMappingURL=validateNextState.js.map