Skip to content

Commit

Permalink
[#1] 환경설정변경
Browse files Browse the repository at this point in the history
- _app.tsx QueryClientProvider추가
  • Loading branch information
JoGeumJu committed Apr 15, 2023
1 parent d7eaf11 commit 0cef861
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import styled from "styled-components";
import { GlobalStyle } from "../styles/global.style";
import type { AppProps } from "next/app";
import { Header } from "../src/components/header/Header";
import { Footer } from "../src/components/footer/Footer";
import { Layout } from "../src/components/layout/Layout";
import { RecoilRoot } from "recoil";
import { ScrollCSS } from "../src/components/layout/ScrollCSS";
import { QueryClient, QueryClientProvider } from "react-query";

export default function App({ Component, pageProps }: AppProps) {
const queryClient = new QueryClient();

return (
<RecoilRoot>
<Layout>
<Component {...pageProps} />
</Layout>
<QueryClientProvider client={queryClient}>
<Layout>
<Component {...pageProps} />
</Layout>
</QueryClientProvider>
</RecoilRoot>
);
}

0 comments on commit 0cef861

Please sign in to comment.