Skip to content

Commit cf6d30e

Browse files
change to new sw impl (#905)
1 parent f5c831b commit cf6d30e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

apps/website/src/root.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { component$, useContextProvider, useStore, useStyles$ } from '@builder.io/qwik';
2-
import {
3-
QwikCityProvider,
4-
RouterOutlet,
5-
ServiceWorkerRegister,
6-
} from '@builder.io/qwik-city';
2+
import { QwikCityProvider, RouterOutlet } from '@builder.io/qwik-city';
3+
import { PrefetchServiceWorker, PrefetchGraph } from '@builder.io/qwik';
74

85
import { APP_STATE_CONTEXT_ID } from './_state/app-state-context-id';
96
import { AppState } from './_state/app-state.type';
@@ -46,7 +43,8 @@ export default component$(() => {
4643
<meta charSet="utf-8" />
4744
<link rel="manifest" href="/manifest.json" />
4845
<RouterHead />
49-
<ServiceWorkerRegister />
46+
<PrefetchGraph />
47+
<PrefetchServiceWorker />
5048
</head>
5149
<body lang="en">
5250
<ThemeProvider

0 commit comments

Comments
 (0)