MCPcopy
hub / github.com/react-native-community/upgrade-helper / ServiceWorkerConfig

Interface ServiceWorkerConfig

src/serviceWorker.ts:23–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21)
22
23interface ServiceWorkerConfig {
24 onSuccess?: (registration: ServiceWorkerRegistration) => void
25 onUpdate?: (registration: ServiceWorkerRegistration) => void
26}
27
28export function register(config?: ServiceWorkerConfig) {
29 if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected