Closed
Description
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
Yes
Which terms did you search for in User Guide?
hmr, hot
Environment
node -v
: 8.3.0npm -v
: 4.6.1yarn --version
(if you use Yarn): 0.27.5npm ls react-scripts
(if you haven’t ejected): 1.0.14
Then, specify:
- Operating system: macOS Sierra
- Browser and version (if relevant): Chrome 61.0.3163.100
Steps to Reproduce
cd whatever
npm run start
modify the Welcome to react text in an editor
(Write your steps here:)
create-react-app whatever
cd whatever
npm run start
- Preserve log in the net tab on the site (Chrome)
- modify the Welcome to react text in an editor (in App.js) and save
Expected Behavior
The page should update without a full reload (eg it should HotReload).
Actual Behavior
If you look in the net tab its refreshing the page. You can also see it flicker as it reloads.
Something in the HMR stack isn't working correctly out of the box.
Reproducible Demo
https://github.com/lukemcgregor/create-react-hmr-not-working
see instructions above
Metadata
Metadata
Assignees
Labels
No labels