-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Switch to react-hot-loader v3 #1068
Comments
We should switch to React Hot Loader v3 as soon as it's stable, but I don't see why we shouldn't stick with our current setup for now as it currently works perfectly fine? |
If I am correct, without RHL v3 you don't have hot loading for functional components. |
That's true. Does RHL v3 at this state already have support for functional components? |
Yeah, I am using it for a few months and it's perfect for me. Also included in Phenomic for a while and nobody reported any issue about it :) |
Alright, let's switch to RHL v3 then! |
Hi guys, I came up with a question and decided to ask it here since it's related to how the app is being reloaded. When editing certain parts of the app like redux actions, we all constantly see the following message in the browser's console: I once tried I'm wondering how hard would it be to optionally enable cold reloading when Could anyone suggest how to trigger a full reload? Just spent > 1hr on this and gave up :-) |
@kachkaev try to create your components using React.Component instead. It will auto reload |
@manelpb yeah I know that I can use |
I don't have a complete example of this at hand (only private project code) but I was able to use Webpack 2.2 and RHL3 with this boilerplate. It required some moving of code a bit but It works great ! |
|
Same as @MichaelIT here, can't make it working. |
Here is what helped in old webpack #1357 Maybe there is an alternative in v2? |
I'm back to the old hmre for the moment, it doesn't work on everything but it's sill better than nothing. I'm waiting for the 3.5 to see if something changes. |
1 similar comment
I'm back to the old hmre for the moment, it doesn't work on everything but it's sill better than nothing. I'm waiting for the 3.5 to see if something changes. |
Fixed in #1871 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
fall cleaning... maybe we should remove
babel-preset-hmre
as it relies heavily on the now deprecated https://github.com/gaearon/react-transform-hmr the question is: how important is maintaining local (react) component state between HMR reloads?options:
edit: also see https://github.com/danmartinez101/babel-preset-react-hmre/issues/46
The text was updated successfully, but these errors were encountered: