Quantcast
Channel: Redux - state updated in reducer but not updating the new values to component - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Thananjaya S for Redux - state updated in reducer but not updating...

You missed mapDispatchToProps after mapStateToProps. mapStateToProps and mapDispatchToProps are both pure functions that are provided the stores “state” and “dispatch” respectively. Furthermore, both...

View Article



Redux - state updated in reducer but not updating the new values to component

While updating the state in redux combined with React app, the state is updated in the reducer. But in the container, I'm still getting the old state. Below is the reducer. import * as constants from...

View Article
Browsing latest articles
Browse All 2 View Live


Latest Images