vite-plugin-pwa icon indicating copy to clipboard operation
vite-plugin-pwa copied to clipboard

feat(client): add on begin update hooks

Open Doctor-wu opened this issue 1 year ago • 4 comments

Add onBeginUpdate hooks when a new service worker is found and is being installed but not yet completed.

closes #620

Doctor-wu avatar Dec 14 '23 07:12 Doctor-wu

Deploy Preview for vite-plugin-pwa-legacy ready!

Name Link
Latest commit 0c777f8bf377f009f50b3d2a231343075e916373
Latest deploy log https://app.netlify.com/sites/vite-plugin-pwa-legacy/deploys/657f19aec5c4e60008f2483f
Deploy Preview https://deploy-preview-623--vite-plugin-pwa-legacy.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Dec 14 '23 07:12 netlify[bot]

can you add it to an example (don't use sveltekit, it is deprecated in this repo)?

userquin avatar Dec 14 '23 10:12 userquin

Done

Doctor-wu avatar Dec 14 '23 10:12 Doctor-wu

I'm going to do some tests (no idea when I'll have some free time) and maybe adding a new experimental option to use a new built-in workbox-window exposing the updatefound event, Workbox repo is dead, just a few updates in last years.

userquin avatar Dec 14 '23 23:12 userquin