mirror of
https://github.com/towfiqi/serpbear
synced 2025-06-26 18:15:54 +00:00
22 lines
663 B
TypeScript
22 lines
663 B
TypeScript
import '../styles/globals.css';
|
|
import React from 'react';
|
|
import type { AppProps } from 'next/app';
|
|
import { QueryClient, QueryClientProvider } from 'react-query';
|
|
import { ReactQueryDevtools } from 'react-query/devtools';
|
|
|
|
function MyApp({ Component, pageProps }: AppProps) {
|
|
const [queryClient] = React.useState(() => new QueryClient({
|
|
defaultOptions: {
|
|
queries: {
|
|
refetchOnWindowFocus: false,
|
|
},
|
|
},
|
|
}));
|
|
return <QueryClientProvider client={queryClient}>
|
|
<Component {...pageProps} />
|
|
<ReactQueryDevtools initialIsOpen={false} />
|
|
</QueryClientProvider>;
|
|
}
|
|
|
|
export default MyApp;
|