question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing mapStateToProps doesn't hot reload?

See original GitHub issue

Not sure if this is expected or not. But when updating mapStateToProps components don’t seem to re-execute the mapStateToProps function.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Apr 18, 2016

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!

0reactions
glenjamincommented, Apr 18, 2016

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found