fix: clear sw
This commit is contained in:
parent
1e9ca2e9b6
commit
e9aaf3444a
|
|
@ -84,6 +84,16 @@ const queryClient = new QueryClient({
|
|||
|
||||
const persister = createIDBPersister()
|
||||
|
||||
try {
|
||||
navigator.serviceWorker?.getRegistrations?.().then((registrations) => {
|
||||
registrations?.forEach((registration) => {
|
||||
registration.unregister()
|
||||
})
|
||||
})
|
||||
} catch (error) {
|
||||
console.warn(error)
|
||||
}
|
||||
|
||||
function MyApp({ Component, pageProps }: any) {
|
||||
const getLayout = Component.getLayout ?? ((page: any) => page)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue