Skip to content
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

Doesn't reload the page after succesfull compile in new react app #476

Closed
spenat28 opened this issue Aug 17, 2021 · 2 comments
Closed

Doesn't reload the page after succesfull compile in new react app #476

spenat28 opened this issue Aug 17, 2021 · 2 comments

Comments

@spenat28
Copy link

spenat28 commented Aug 17, 2021

OS: MacOS
Browser: Chroma (latest)

Expected:
on index.js change page should full reload

Actual result:
on index.js change there is no reload, and changes are not visible in browser without manual refresh

Simulate it:

  1. create new app
$ npx create-react-app my-app
$ cd my-app
$ npm start
  1. edit index.js - make any change: add some console log or DIV ...
  2. in terminal, you can see that app did compile
  3. changes should be visible in browser - in this case - full page reload should occur -- but nothing happens

When editing App.js - changes are fast reloaded. (At least most of the time ...)

Note:
example of this is in new app, but it doesn't work in larger projects either in most files.

Known workaround in our up now is just one solution we know: disabling fast reload.

@pmmmwh
Copy link
Owner

pmmmwh commented Aug 17, 2021

This is a known issue in CRA.

See facebook/create-react-app#11105

@pmmmwh pmmmwh closed this as completed Aug 17, 2021
@spenat28
Copy link
Author

@pmmmwh oh thanks, it does work with your patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants