Redux state is undefined in mapStateToProps

Posted by Pinki | Updated on

Redux state is undefined in mapStateToProps. You reducer doesn’t have a default action in switch statement. Which is why even though you mentioned the initial state in reducer params, undefined is returned as store initial state

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers