angular / 14.0.0 / api / service-worker / updateactivatedevent.html /

UpdateActivatedEvent

interface deprecated

An event emitted when a new version of the app has been downloaded and activated.

Deprecated: This event is only emitted by the deprecated SwUpdate. Use the return value of SwUpdate instead.

interface UpdateActivatedEvent {
  type: 'UPDATE_ACTIVATED'
  previous?: {...}
  current: {...}
}

See also

Properties

Property Description
type: 'UPDATE_ACTIVATED'
previous?: { hash: string; appData?: Object; }
current: { hash: string; appData?: Object; }

© 2010–2022 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/service-worker/UpdateActivatedEvent