From fa070064aa6fdd366e238c716d4bc8b4111fb158 Mon Sep 17 00:00:00 2001 From: rtrembecky Date: Sun, 15 Dec 2024 10:06:55 +0100 Subject: [PATCH] more _app cleanup - redundant dynamic import --- src/pages/_app.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 37023125..0a79ccab 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,9 +1,9 @@ import {CssBaseline} from '@mui/material' import {ThemeProvider} from '@mui/material/styles' import {QueryClient, QueryClientProvider} from '@tanstack/react-query' +import {ReactQueryDevtools} from '@tanstack/react-query-devtools' import {isAxiosError} from 'axios' import {AppProps} from 'next/app' -import dynamic from 'next/dynamic' import Head from 'next/head' import {FC, PropsWithChildren, useMemo} from 'react' import {CookiesProvider} from 'react-cookie' @@ -14,13 +14,6 @@ import {AlertContainer} from '@/utils/AlertContainer' import {AuthContainer} from '@/utils/AuthContainer' import {useAlert} from '@/utils/useAlert' -const ReactQueryDevtools = dynamic( - () => import('@tanstack/react-query-devtools').then(({ReactQueryDevtools}) => ReactQueryDevtools), - { - ssr: false, - }, -) - const ReactQueryProvider: FC = ({children}) => { const {alert} = useAlert()