anew
Version:
React and Redux Framework with additional power.
13 lines (11 loc) • 342 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = createCombinedReducer;
function createCombinedReducer(anewStore, reduxReducer) {
return function (reduxState, action) {
action.state = anewStore.state;
return anewStore.setState(reduxReducer(reduxState, action));
};
}