Skip to content

Commit

Permalink
more _app cleanup - redundant dynamic import
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrembecky committed Dec 15, 2024
1 parent 73013b6 commit fa07006
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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<PropsWithChildren> = ({children}) => {
const {alert} = useAlert()

Expand Down

0 comments on commit fa07006

Please sign in to comment.