Skip to content
On this page

Module: lib/pwa-register

Interfaces

Functions

useRegisterSW

useRegisterSW(options?): Object

Parameters

NameType
options?RegisterSWOptions

Returns

Object

NameType
needRefreshRef<boolean>
offlineReadyRef<boolean>
updateServiceWorker(reloadPage?: boolean) => Promise<void>