Support HMR for reducers
See original GitHub issueWhen I try to enable HMR on my project, console log said:
<Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/reactjs/react-redux/releases/tag/v2.0.0 for the migration instructions.
We need to apply these simple code to support HMR. Guide here: https://github.com/reactjs/react-redux/releases/tag/v2.0.0
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Hot Module Replacement in Redux - Toptal
This is a minimal example of hot module replacement (or HMR) in a Redux application. The working demo code is hosted on GitHub....
Read more >Redux Toolkit HMR in React Native does not update reducers
TL;DR: Configuring the Redux Toolkit store in React Native for HMR properly refreshes app on changes, but reducer behaviour does not change! As ......
Read more >Setup and configure Webpack's HMR and React Hot Loader ...
Webpack's Hot Module Replacement (HMR) is a neat feature which allows ... This article will help you speed up that process and save...
Read more >redux-reducers-injector vulnerabilities | Snyk
Allows dynamically injecting reducers into a redux store at runtime. Support HMR and SSR. · latest version · latest non vulnerable version.
Read more >Setting Up HMR (Hot Module Replacement) - Educative.io
Updating the store setup and reducer HMR; React component tree HMR; Playground. You've likely heard of hot module replacement at some point.
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 Free
Top 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
Shouldn’t this enhancement request having been reopened?
Thanks for the explanation. I’m reopening the enhancement request. A PR to implement the solution is welcome.