Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

feat: Add swHasUpgrade but prevent auto reload. #517

Merged
merged 5 commits into from
Nov 6, 2024

Conversation

richtera
Copy link
Contributor

Ticket ID

https://app.clickup.com/t/2645698/DEV-11966

Description

provide a new boolean called swHasUpgrade using provide('swHasUpgrade', hasUpgrade)
the value will be set if an upgrade is detected during the initial page load. The upgrade will be allowed,
but the new version will not be initialized such that we can notify the user they can reload to get an upgrade
next time. It should automatically upgrade on the next full navigation to another page anyways.

@Hugoo
Copy link
Contributor

Hugoo commented Oct 30, 2024

Task linked: DEV-11966 Remove additional page reload

Copy link
Contributor

github-actions bot commented Oct 30, 2024

Deployed with Cloudflare Pages ☁️ 🚀 🆗

app.vue Outdated Show resolved Hide resolved
Copy link
Member

@JeneaVranceanu JeneaVranceanu left a comment

Choose a reason for hiding this comment

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

LGTM

app.vue Outdated Show resolved Hide resolved
nuxt.config.ts Show resolved Hide resolved
nuxt.config.ts Outdated Show resolved Hide resolved
nuxt.config.ts Outdated Show resolved Hide resolved
@dzbo
Copy link
Collaborator

dzbo commented Nov 1, 2024

@richtera we are getting there, can you check why lint is complaining?

@richtera
Copy link
Contributor Author

richtera commented Nov 1, 2024

@richtera we are getting there, can you check why lint is complaining?

See above comment about "pages"

@franckwei franckwei merged commit fabdea0 into main Nov 6, 2024
2 checks passed
@franckwei franckwei deleted the feat/add-has-upgrade branch November 6, 2024 11:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants