Usable mainly when reducer is more like assembler for your data store changes, and main logic is put into action. So you often need to dispatch multiple smaller action, but to keep it atomic, they have to be processed in a single reduce step. This is the solution. The bonus is, it works well with devTools also.
export function multipleActionsEnhanceReducer(reducer) {
return (state, action, ...rest) => {
if (action.actions && action.actions.type && action.actions instanceof Array) {
state = action.actions.reduce(reducer, state);
} else {