[5.1.0-test.1] Connected components don't re render after state update
See original GitHub issueI gave a first try to the new beta and I can see some problems (unless I should make some changes).
The components that are connected to the store via connect
don’t get updated (they don’t re render). While debugging I can see that the function mapStateToProps
gets called correctly (and I can see the changes) after the action but the component doesn’t re-render hence it doesn’t show the new values.
I hope it could help
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:52 (41 by maintainers)
Top Results From Across the Web
Connected component doesn't re-render after store ...
In my case, when the action UPDATE_CURRENT_USER update the avatar image, the navbar avatar doesn't get the new image only after I change...
Read more >Why Redux Store Changes Don't Re-render - YouTube
When using Redux, it's common to run into issues where your store isn't updating, or isn't updating in the way you expect it...
Read more >Why React Re-Renders
When a component re-renders, because one of its state variables has been updated, that re-render will cascade all the way down the tree,...
Read more >A (Mostly) Complete Guide to React Rendering Behavior
If the component infinitely keeps queueing state updates and forcing React to re-render it, React will break the loop after a set number...
Read more >Introducing and Implementing IBM FlashSystem V9000
After connecting the components in a scalable building block, no physical cable connects any host to any switch in the internal Fibre ...
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
Hmm. Good point. Let’s see…
Oh hey, you CAN edit release notes after the fact. Okay, will do. Thanks for the notice!
@cellog That’s what the
pure
option does currently, which is enabled by default. We act essentially as a PureComponent already.Again, the core issue is the misuse of gDSFP. We’re literally doing the first thing the 16.4 blog post says not to do. So, the refactor would be to not do that. We should do something closer to @bvaughn’s subscription example: https://gist.github.com/bvaughn/d569177d70b50b58bff69c3c4a5353f3