-
Notifications
You must be signed in to change notification settings - Fork 26
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
Castaway/704 check for updates immediately #1297
base: master
Are you sure you want to change the base?
Conversation
Not entirely sure this works yet - isStable apparently only gets stable if no polling things are started/happening, so may need to check those too. This can be improved by using activateUpdate instead of window.reload, and then subscribing to "unrecoverable state" to reload in case of issues, see https://v11.angular.io/guide/service-worker-communications |
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.
Great, @castaway!
cef5106
to
f828a50
Compare
isStable doesn't happen in an app that starts scheduled tasks immediately
f828a50
to
1c0b6b1
Compare
'current': | ||
{'hash':'blah', 'appData':{'build_epoch':'XX'}}, | ||
'available': | ||
{'hash':'blah', 'appData':{'commit':'test', 'build_time': 'time', 'build_epoch':'XX'}}, |
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.
The blah seems a bit strange. What is the reason?
Fixes #704 .. or improves anyway