Skip to content

Commit

Permalink
feat: query client setting
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed May 13, 2024
1 parent 3794632 commit 5511e68
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import '@/styles/globals.css';
import type { AppProps } from 'next/app';
import { QueryClient, QueryClientProvider } from 'react-query';

const queryClient = new QueryClient();

export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
return (
<QueryClientProvider client={queryClient}>
<Component {...pageProps} />
</QueryClientProvider>
);
}

0 comments on commit 5511e68

Please sign in to comment.