-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
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
Hot reload not working #502
Comments
You are probably not putting your Provider right near your entry point and ReactDOM.render. It shouldn't be contained within a component, as something like React Hot Loader will attempt to recreate the store on a reload. |
I'm seeing this issue. Is there a full example of an app to show how to avoid this behavior? |
I had to struggle a bit but @timdorr is right about the index.ios.js
Main.js
configureStore.js
|
Hi,
I apologize if this is an old request. I searched quite a bit but couldn't find a solution that works for my use case. I'm getting the following error when making changes via hot reloading.
<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.
The documentation seems to be for a simple
configureStore
implementation and is very old too. I was unable to find any documentation aroundmodule.hot.acceptCallback
but my code would fail with the following error until I explicitly assigned it a function value.hot.acceptCallback is not a function
Code below. Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: