From 11985fa386a281bbbd7ed41faff4201b470c1047 Mon Sep 17 00:00:00 2001 From: mksoo Date: Sun, 21 Jul 2024 23:30:12 +0900 Subject: [PATCH 1/5] =?UTF-8?q?feat(common)=20react=20query=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/App.tsx | 41 +++++++++++++++------------ src/hooks/common/QueryKeyGenerator.ts | 5 ++++ 3 files changed, 29 insertions(+), 18 deletions(-) create mode 100644 src/hooks/common/QueryKeyGenerator.ts diff --git a/package.json b/package.json index 5706a04..cc5ec03 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@fontsource/roboto": "^5.0.8", "@mui/icons-material": "^5.15.4", "@mui/material": "^5.15.4", + "@tanstack/react-query": "^5.51.11", "@types/react-router-dom": "^5.3.3", "dayjs": "^1.11.11", "prettier": "^3.3.0", diff --git a/src/App.tsx b/src/App.tsx index 9f7de79..5e4690d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -11,35 +11,40 @@ import Board from "./modules/Community/index.tsx"; import BoardView from "./modules/Community/BoardView.tsx"; import { Container, CssBaseline } from "@mui/material"; import { createTheme, ThemeProvider } from "@mui/material/styles"; +import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; function App() { const defaultTheme = createTheme(); + const queryClient = new QueryClient(); + return ( - - - - -
- - - } /> - } /> - } /> - } /> - } /> - {/* + + + + + +
+ + + } /> + } /> + } /> + } /> + } /> + {/* */} - -