Instead of import { resetReducer } from cooldux :
export const { someAction, someOtherAction, initialStateCombined } = duck;
const reducer = resetReducer(initialStateCombined, (state = initialStateCombined, action) => {
return duck.reducerCombined(state, action);
});
export default reducer;
It should be as simple as:
export const { someAction, someOtherAction } = duck;
export default duck.resetReducer;
you can still the former example if you need custom reducer functionality. Just finding myself using the same reset pattern too often