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

updateServiceWorker always reload the page #779

Open
wighawag opened this issue Nov 5, 2024 · 0 comments
Open

updateServiceWorker always reload the page #779

wighawag opened this issue Nov 5, 2024 · 0 comments

Comments

@wighawag
Copy link

wighawag commented Nov 5, 2024

Currently in the code

once the service worker is installed, after calling updateServiceWorker the page reload

This is unfortunate as the flow I want for my user is as follow

once a new service worker is detected, I want it installed as soon as possible. Then I ask the user if they want to reload the page to get the new version. If they close, they can continue, but if they reload manually later, I want them to have the new version

updateServiceWorker automatic reload prevent me to do that and so when a user reload they keep getting the message to update until they click "reload". which is not what I want

An option to not reload automatically would be great

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

1 participant