Skip to content

Commit

Permalink
➕feat : tanstack query
Browse files Browse the repository at this point in the history
- 중복요청을 방지하기 위해 해당 라이브러리 설정을 합니다

by Hah-nna #14
  • Loading branch information
Hah-nna committed Mar 30, 2024
1 parent 6abd433 commit cbe0980
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ import IsChallengeDonePage from "./pages/MyPage/IsChallengeDonePage";
import KakaoAuth from "./routes/KakaoAuth";
import DoneChallenge from "./pages/MyPage/doneChallenge";
import HavePage from "./pages/CreateChallengePage/havePage";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";

function App() {
const queryClient = new QueryClient();

const router = createBrowserRouter([
{
path: "/",
Expand Down Expand Up @@ -91,9 +94,11 @@ function App() {
]);

return (
<RecoilRoot>
<RouterProvider router={router} />
</RecoilRoot>
<QueryClientProvider client={queryClient}>
<RecoilRoot>
<RouterProvider router={router} />
</RecoilRoot>
</QueryClientProvider>
);
}

Expand Down

0 comments on commit cbe0980

Please sign in to comment.