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.

Support HMR for reducers

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
mabhubcommented, Sep 27, 2019

Shouldn’t this enhancement request having been reopened?

2reactions
fzaninottocommented, Feb 28, 2019

Thanks for the explanation. I’m reopening the enhancement request. A PR to implement the solution is welcome.

Read more comments on GitHub >

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

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