-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Refresh window on files change #1542
Comments
was unsure if it happens, but it happens indeed all the time |
@prbxr is your Chrome running in a different virtual desktop or workspace? Chrome throttles backgrounded tabs, which includes things requestAnimationFrame and timers - perhaps the in-browser portion of Webpack is using a timer to defer HMR updates, and that timer is being throttled. There are some options for tab throttling in |
It seems like on my desktop ubuntu it is fine. While on my other laptop ubuntu it does the above. Will check it farther |
It is my two users lol |
When using
preact watch
of preact-cli 3.0.4, ubuntu, chrome latestAll the time I have used preact-cli in the past half year, on file change, the window will refresh only when the browser gets into view. It happens most of the time.
I am used to different flow - to save the file in the editor and by the time I switch to the browser, it will be refreshed because it started to refresh on file save.
Is it some webpack flag ?
Apparently it senses browser visibility event and only on this event triggers refresh.
The text was updated successfully, but these errors were encountered: