Open UseMuse opened 4 years ago
A duplicate of #4732, but I agree there should at least be a statement on HMR within the readme, even if that's to state why they suggest against it.
This also works:
if (module.hot) {
module.hot.accept()
}
Would be good to list any caveats of doing this rather than theaccept('./App'
approach.
Hot module reloading has been superseded by react-refresh and its webpack plugin which was merged in April. It is not yet released (latest release, 3.4.1, was in March), but will hopefully be in >=3.4.2. In master it is currently marked as experimental and behind the FAST_REFRESH
flag.
for example