Skip to content

Commit

Permalink
feat: add react-query devtools in development env
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadshaheer committed Jul 7, 2024
1 parent ef85491 commit 4264fc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import posthog from 'posthog-js';
import { createRoot } from 'react-dom/client';
import { HelmetProvider } from 'react-helmet-async';
import { QueryClient, QueryClientProvider } from 'react-query';
import { ReactQueryDevtools } from 'react-query/devtools';
import { Provider } from 'react-redux';
import store from 'store';

Expand Down Expand Up @@ -72,6 +73,9 @@ if (container) {
<Provider store={store}>
<AppRoutes />
</Provider>
{process.env.NODE_ENV === 'development' && (
<ReactQueryDevtools initialIsOpen={false} />
)}
</QueryClientProvider>
</ThemeProvider>
</HelmetProvider>
Expand Down

0 comments on commit 4264fc0

Please sign in to comment.