diff --git a/web/app/components/devtools.tsx b/web/app/components/devtools.tsx index 7162f9f67d..e5415ca751 100644 --- a/web/app/components/devtools.tsx +++ b/web/app/components/devtools.tsx @@ -4,12 +4,8 @@ import { TanStackDevtools } from '@tanstack/react-devtools' import { formDevtoolsPlugin } from '@tanstack/react-form-devtools' import { ReactQueryDevtoolsPanel } from '@tanstack/react-query-devtools' import * as React from 'react' -import { IS_DEV } from '@/config' export function TanStackDevtoolsWrapper() { - if (!IS_DEV) - return null - return ( + import('@/app/components/devtools').then(module => ({ + default: module.TanStackDevtoolsWrapper, + })), +) const STALE_TIME = 1000 * 60 * 30 // 30 minutes @@ -19,7 +26,11 @@ export const TanstackQueryInitializer: FC = (props) => { return ( {children} - + {IS_DEV && ( + + + + )} ) }