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

How to disable refresh of a browser when hot reloading? #1674

Closed
evmorov opened this issue Feb 28, 2017 · 2 comments
Closed

How to disable refresh of a browser when hot reloading? #1674

evmorov opened this issue Feb 28, 2017 · 2 comments

Comments

@evmorov
Copy link

evmorov commented Feb 28, 2017

Hi!

I'm new to React. This project helps a lot but react-hot-loader is super annoying for me.

When I edit code I save a lot and I don't want the browser to be refreshed at every change. However I like that the app is rebuilt automatically and I don't need to rerun npm start.

Can I disable browser refreshing on change somehow?

@gaearon
Copy link
Contributor

gaearon commented Feb 28, 2017

This project has no relation to React Hot Loader. In fact React Hot Loader does the opposite: it updates page in place without refreshing. React Hot Loader is not included in Create React App.

No, you can't disable refreshing in the default setup. If you want to customize this, you can either npm run eject and then configure Webpack as you like, or fork react-scripts and maintain your own version that doesn’t refresh automatically.

@b-gran
Copy link

b-gran commented Jul 30, 2017

If you're using Chrome, you can temporarily disable reloading by following these instructions:
#2519 (comment)

No changes to create-react-app are required.

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants