You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
533 B
TypeScript
21 lines
533 B
TypeScript
import '@/styles/globals.css'
|
|
import type { AppProps } from 'next/app'
|
|
import { QueryClient, QueryClientProvider } from 'react-query'
|
|
import { useState } from 'react'
|
|
|
|
export default function App({ Component, pageProps }: AppProps) {
|
|
const [queryClient] = useState(() => new QueryClient({
|
|
defaultOptions: {
|
|
queries: {
|
|
refetchOnWindowFocus: false,
|
|
retry: 2,
|
|
},
|
|
},
|
|
}))
|
|
|
|
return (
|
|
<QueryClientProvider client={queryClient}>
|
|
<Component {...pageProps} />
|
|
</QueryClientProvider>
|
|
)
|
|
} |