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

Castaway/704 check for updates immediately #1297

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

castaway
Copy link
Contributor

Fixes #704 .. or improves anyway

@castaway castaway marked this pull request as draft August 22, 2022 09:49
@castaway
Copy link
Contributor Author

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

Copy link
Contributor

@gtandersen gtandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, @castaway!

@castaway castaway force-pushed the castaway/704_check_for_updates_immediately branch from cef5106 to f828a50 Compare February 19, 2025 14:09
@castaway castaway force-pushed the castaway/704_check_for_updates_immediately branch from f828a50 to 1c0b6b1 Compare February 20, 2025 15:23
@castaway castaway marked this pull request as ready for review February 20, 2025 15:24
@castaway castaway requested a review from shadowbas February 20, 2025 15:26
'current':
{'hash':'blah', 'appData':{'build_epoch':'XX'}},
'available':
{'hash':'blah', 'appData':{'commit':'test', 'build_time': 'time', 'build_epoch':'XX'}},
Copy link
Contributor

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?

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

Successfully merging this pull request may close these issues.

#Angular: App updates during login procedure and log in details are lost and have to be re-entered
3 participants