-
Notifications
You must be signed in to change notification settings - Fork 91
troubleshooting(webcontainer): how to fix infinite reload in chrome #138
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
Conversation
|
✅ Deploy Preview for stackblitz-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
ce16abb
to
bbd1056
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks 🙏
|
||
If you have your preview in a separate tab and you open Chrome dev tools, you can observe an infinite reload loop after a refresh. This is usually caused by having the `Update on reload` checkbox checked in `Application > Service Workers`. | ||
|
||
<img alt="Chrome DevTools with the Application tab selected showing the Service Workers section with the Update on reload checkbox checked" src="./assets/chrome-update-on-reload.png" width="800" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Co-authored-by: Dominic Elm <d3lm@users.noreply.github.com>
🥰 |
PR Description
This PR provides some guidance on how to resolve the "Infinite reload page" issue.
This is an issue where when you open chrome's devtools on the preview page, doing a refresh will force the service worker to be re-installed. In doing so, it will:
Thus the loop. 🥸
Summary of my changes and explanation of my decisions
We add a section to troubleshooting explaining the step to follow to prevent that error: disable the
update on reload
option.Self-check
Please check all that apply: