-
Notifications
You must be signed in to change notification settings - Fork 16
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
Is there a way to enable hot module replacement #2
Comments
Hm, that's odd. HMR works for me when I'm running this project (i.e. Something to note is that HMR doesn't usually work with the root component. I haven't found explicit documentation on this yet but in my experience changes to a root component require a full reload. Another issue may be functional components. According to the repo we're using functional components are not yet supported for HMR, only |
@iansinnott Thanks for your updated. I've try and test again, it's a functional components problem. Thanks. |
👍 |
React Hot Loader 3 supports functional components without destroying the state. |
@iansinnott I'm familiar with the webpack-dev-server and have used it quite a bit. But in webpack-dev-middleware, I have no idea on how to get hot module replacement working in this project.
Currently there is a error message from HMR on chrome console after I save my changes in the file.
Could you please give me some advice on hot-module-replacement with webpack-dev-middleware? thanks.
Also, are you going to upgrade version of babel from 5.. to 6..?
The text was updated successfully, but these errors were encountered: