fix: hydration problem on default layout (#831)
This commit is contained in:
parent
c48ee6c35b
commit
731d68d53d
3 changed files with 3 additions and 12 deletions
|
@ -5,14 +5,11 @@ import { NavigationRoute, registerRoute } from 'workbox-routing'
|
|||
import { CacheableResponsePlugin } from 'workbox-cacheable-response'
|
||||
import { StaleWhileRevalidate } from 'workbox-strategies'
|
||||
import { ExpirationPlugin } from 'workbox-expiration'
|
||||
// import * as navigationPreload from 'workbox-navigation-preload'
|
||||
|
||||
import { onNotificationClick, onPush } from './web-push-notifications'
|
||||
|
||||
declare const self: ServiceWorkerGlobalScope
|
||||
|
||||
// if (import.meta.env.PROD)
|
||||
// navigationPreload.enable()
|
||||
|
||||
self.addEventListener('message', (event) => {
|
||||
if (event.data && event.data.type === 'SKIP_WAITING')
|
||||
self.skipWaiting()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue