redux-action-reducer
redux-action-reducer copied to clipboard
handle when the new state is undefined.
In the case where an action results in a new state that is undefined (e.g. passing an undefined payload to a payloadPassThrough), this causes redux to crash. This PR logs an error in these cases and returns the previous state to avoid crashing redux.