Skip to content

WorkboxLifecycleWaitingEvent ​

Interface @vite-pwa/workbox-window

A lifecycle event for a service worker waiting to activate.

Properties ​

PropertyTypeDefaultDescription
isExternal?booleanWhether this event is associated with an external service worker.
isUpdate?booleanWhether a service worker was already controlling when register() was called.
originalEvent?EventThe browser event that triggered this event, when available.
sw?ServiceWorkerThe service worker associated with this event.
target?WorkboxEventTargetThe Workbox instance that dispatched this event.
typekeyof WorkboxLifecycleEventMapThe event type.
wasWaitingBeforeRegister?booleanWhether the service worker was already waiting when register() was called.

Released under the MIT License.