Skip to content

Commit c8cf864

Browse files
committed
chore: QueryProvider 위치 변경
1 parent 2b874c0 commit c8cf864

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

apps/frontend/src/app/App.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
2-
31
import { useSyncedUsers } from "@/entities/user/model";
42
import { SideWrapper } from "@/shared/ui";
53
import { CanvasView } from "@/widgets/CanvasView";
64
import { EditorView } from "@/widgets/EditorView";
75
import { PageSideBarView } from "@/widgets/PageSideBarView";
86
import { CanvasToolsView } from "@/widgets/CanvasToolsView";
9-
10-
const queryClient = new QueryClient();
7+
import { useGetUser } from "@/features/auth/model/useAuth";
118

129
function App() {
1310
useSyncedUsers();
1411

1512
return (
16-
<QueryClientProvider client={queryClient}>
1713
<div className="fixed inset-0 bg-white">
1814
<SideWrapper side="right" className="z-50">
1915
<EditorView />
@@ -27,7 +23,6 @@ function App() {
2723
<CanvasToolsView />
2824
</SideWrapper>
2925
</div>
30-
</QueryClientProvider>
3126
);
3227
}
3328

apps/frontend/src/app/main.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
import { StrictMode } from "react";
22
import { createRoot } from "react-dom/client";
3+
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
4+
35
import "../shared/index.css";
46
import App from "./App.tsx";
57

8+
const queryClient = new QueryClient();
9+
610
createRoot(document.getElementById("root")!).render(
7-
<StrictMode>
8-
<App />
9-
</StrictMode>,
11+
<QueryClientProvider client={queryClient}>
12+
<StrictMode>
13+
<App />
14+
</StrictMode>
15+
</QueryClientProvider>,
1016
);

0 commit comments

Comments
 (0)