You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depending on the client that fires the sw installation and the client where the reload is fired, workbox-window is firing some weird events on the original client that fires the sw installation: also preventing the logic to reload the app in that client.
Library Affected:
workbox-window
Browser & Platform:
Latest Google Chrome on Windows 10.
Issue or Feature Request Description:
We're trying to solve a problem when using workbox-window on vite-plugin-pwa when using prompt for update strategy using https://developer.chrome.com/docs/workbox/handling-service-worker-updates/.
Depending on the client that fires the sw installation and the client where the reload is fired, workbox-window is firing some weird events on the original client that fires the sw installation: also preventing the logic to reload the app in that client.
For more context you can check this PR comment: vite-pwa/vite-plugin-pwa#394 (comment)
You can clone the repo and checkout the branch https://github.com/vite-pwa/vite-plugin-pwa/tree/userquin/fix-reload-prompt-multiple:
pnpm install && pnpm run build
pnpm run examples
: follow the wizard with default values (vue, prompt for update...) or use the fw you want (except sveltekit).The text was updated successfully, but these errors were encountered: