Changing mapStateToProps doesn't hot reload?
See original GitHub issueNot sure if this is expected or not. But when updating mapStateToProps
components don’t seem to re-execute the mapStateToProps function.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
mapStateToProps doesn't update when store changes
I created a minimal project to reproduce the issue. App.js: import React, {Component} from 'react'; import {Platform, StyleSheet, Text, View, ...
Read more >connect doesn't refresh when state change on react-native ...
Coding example for the question connect doesn't refresh when state change on react-native ... </View> ) } } export default connect(mapStateToProps)(Home).
Read more >How To Reload a Page Whenever a User Makes a Change ...
We'll use mapStateToProps() to access the counter within the page component, and pass it instead of the local state number when we dispatch ......
Read more >react-redux @ 5.0.7 .. 5.1.1 - Package Diff
+ 'It is most likely that you see this error because you updated to ' + 'Redux 2.x and React Redux 2.x which...
Read more >Managing your React state with Redux - Medium
The fact that the Redux state changes predictably opens up a lot of debugging ... It contains a lot of boilerplate code to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is fixed in React Hot Loader 3. It is built with lessons learned from both React Hot Loader and React Transform. It’s still in alpha but I encourage you to check it out!
@gaearon Great stuff! ran into this today when teaching redux to someone. I’ll give it a whirl 😃