| import React from 'react' | |
| import { QueryClient, QueryClientProvider } from '@tanstack/react-query' | |
| import type { AppProps } from 'next/app' | |
| export default function MyApp({ Component, pageProps }: AppProps) { | |
| const [queryClient] = React.useState(() => new QueryClient()) | |
| return ( | |
| <QueryClientProvider client={queryClient}> | |
| <Component {...pageProps} /> | |
| </QueryClientProvider> | |
| ) | |
| } | |