redux-action-reducer icon indicating copy to clipboard operation
redux-action-reducer copied to clipboard

handle when the new state is undefined.

Open stukennedy opened this issue 7 years ago • 0 comments

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.

stukennedy avatar Sep 24 '18 14:09 stukennedy