Skip to content

Commit

Permalink
Merge pull request #132 from ttaerrim/react-query-setting
Browse files Browse the repository at this point in the history
[Feat] React-Query 초기 세팅
  • Loading branch information
ttaerrim authored Nov 21, 2023
2 parents cdeb1fe + 09e6f7f commit 88a1a90
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@fullcalendar/core": "^6.1.9",
"@fullcalendar/daygrid": "^6.1.9",
"@hookform/resolvers": "^3.3.2",
"@lukemorales/query-key-factory": "^1.3.2",
"@tanstack/react-query": "^5.8.1",
"@tanstack/react-query-devtools": "^5.8.1",
"@vanilla-extract/css": "^1.14.0",
Expand Down
9 changes: 8 additions & 1 deletion app/frontend/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react';
import { CookiesProvider } from 'react-cookie';

import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import ReactDOM from 'react-dom/client';

import App from './App';
Expand All @@ -15,11 +17,16 @@ async function enableMocking() {
return worker.start();
}

const queryClient = new QueryClient();

enableMocking().then(() => {
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<CookiesProvider>
<App />
<QueryClientProvider client={queryClient}>
<App />
<ReactQueryDevtools initialIsOpen={false} />
</QueryClientProvider>
</CookiesProvider>
</React.StrictMode>,
);
Expand Down
5 changes: 5 additions & 0 deletions app/frontend/src/styles/global.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { globalStyle } from '@vanilla-extract/css';

globalStyle('.tsqd-parent-container', {
fontSize: '1.6rem',
});
1 change: 1 addition & 0 deletions app/frontend/src/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * as fontStyle from './font.css';
export * as global from './global.css';
export * as reset from './reset.css';
export { vars } from './theme.css';
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 88a1a90

Please sign in to comment.