fix(GRO-1829): add skipWaiting/clientsClaim to VitePWA workbox config #31
Reference in New Issue
Block a user
Delete Branch "gro-1829-swpwa-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
skipWaiting: trueandclientsClaim: truetovite-plugin-pwaworkbox config invite.config.tsRoot Cause
Without
skipWaiting/clientsClaim, the old ServiceWorker stayed active after a new one was installed. The waiting-phase SW served stale precached HTML/JS/CSS, causing React to fail silently (blank login page).Test plan
dist/sw.jscontainsself.skipWaiting()andself.clients.claim()🤖 Generated with Claude Code