We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The example on hot loading reducers is given here: https://github.com/reactjs/react-redux/releases/tag/v2.0.0
if (module.hot) { // Enable Webpack hot module replacement for reducers module.hot.accept('../reducers', () => { const nextRootReducer = require('../reducers/index'); store.replaceReducer(nextRootReducer); }); }
For me, it didn't work until I changed the following: module.hot.accept('../reducers', () => { TO module.hot.accept('../reducers/index', () => {
module.hot.accept('../reducers', () => {
module.hot.accept('../reducers/index', () => {
Is the example on that page incorrect or am I missing something?
The text was updated successfully, but these errors were encountered:
Those are very old release notes. You should consult your build tool's docs for now to do this.
Sorry, something went wrong.
P.S. For anyone else looking for a recent solution, this seems more on track: #502
Edit: Together with this too: https://github.com/gaearon/react-hot-loader/blob/master/docs/Troubleshooting.md#react-hot-loader-this-component-is-not-accepted-by-hot-loader
No branches or pull requests
The example on hot loading reducers is given here: https://github.com/reactjs/react-redux/releases/tag/v2.0.0
For me, it didn't work until I changed the following:
module.hot.accept('../reducers', () => {
TOmodule.hot.accept('../reducers/index', () => {
Is the example on that page incorrect or am I missing something?
The text was updated successfully, but these errors were encountered: