• English
  • Interface: UseRegisterSWReturnValue

    Extends

    Properties

    newSwActive

    newSwActive: WritableBoolean

    The new SW is controlling the page.

    Inherited from

    RegisterSwBindingReturnValue.newSwActive


    newSwWaiting

    newSwWaiting: WritableBoolean

    The newer SW gets installed alongside the previous one, but the old one is still controlling the page.

    Inherited from

    RegisterSwBindingReturnValue.newSwWaiting


    offlineReady

    offlineReady: WritableBoolean

    The SW is ready to work offline.

    Inherited from

    RegisterSwBindingReturnValue.offlineReady


    skipWaiting()

    skipWaiting: () => Promise<void>

    Sends a {type: 'SKIP_WAITING'} message to the SW that's currently in the waiting state associated with the current registration.

    Returns

    Promise<void>

    Inherited from

    RegisterSWReturnValue.skipWaiting