Description
Description
In some cases hot updates are not applied, although the console says it has updated the changed modules and that the app is now up to date.
See the repo below for reproduction or this video: https://www.dropbox.com/s/4v0gxbkn9ytsvt7/react-hot-loader-4.12.13.mov?dl=0.
Previous version (4.12.12) works fine though.
Expected behavior
Hot updates are applied.
Actual behavior
Hot updates are not applied in some cases.
Environment
React Hot Loader version: 4.12.13
Run these commands in the project folder and fill in their results:
node -v
: v12.10.0npm -v
: 6.10.3
Then, specify:
- Operating system: macOS 10.14.6 (18G95)
- Browser and version: Brave Version 0.68.132, Chromium: 76.0.3809.132 (Official Build) (64-bit)
Reproducible Demo
https://github.com/egorovli/react-hot-loader-4.12.13-demo
First, open ./pages/index.jsx
. Note that there is an unused axios
import on top. Try changing the text inside the component to something different (e.g. "Hello, world"). Nothing should change. Then, change the text into something different again (e.g. "Foo bar"). Notice how it changes to the previous value now ("Hello, world").
Now, remember the unused axios
import. Remove it. Now the hot reloading should work as expected.