Skip to content

Commit

Permalink
FE: Chore: Add React Query Devtool (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgrdich authored Apr 15, 2024
1 parent 3fdbfba commit 475caa3
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"styled-components": "^5.3.1",
"use-debounce": "^9.0.3",
"yup": "^1.0.0",
"zustand": "^4.1.1"
"zustand": "^4.1.1",
"@tanstack/react-query-devtools": "4.36.1"
},
"scripts": {
"start": "vite",
Expand Down
48 changes: 48 additions & 0 deletions frontend/pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions frontend/src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { Toaster } from 'react-hot-toast';
import GlobalCSS from 'components/globalCss';
import * as S from 'components/App.styled';
import { ThemeModeContext } from 'components/contexts/ThemeModeContext';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';

import ConfirmationModal from './common/ConfirmationModal/ConfirmationModal';
import { ConfirmContextProvider } from './contexts/ConfirmContext';
Expand Down Expand Up @@ -96,6 +97,7 @@ const App: React.FC = () => {
</Suspense>
</ThemeProvider>
</GlobalSettingsProvider>
<ReactQueryDevtools initialIsOpen={false} />
</QueryClientProvider>
);
};
Expand Down

0 comments on commit 475caa3

Please sign in to comment.