import { ReactQueryDevtools } from 'react-query/devtools'; import { QueryClientProvider } from 'react-query'; import { UIRouterContextComponent } from '@uirouter/react-hybrid'; import { PropsWithChildren, StrictMode } from 'react'; import { UserProvider } from '@/portainer/hooks/useUser'; import { UIStateProvider } from '@/portainer/hooks/UIStateProvider'; import { createQueryClient } from './react-query'; const queryClient = createQueryClient(); export function RootProvider({ children }: PropsWithChildren) { const showReactQueryDevtools = process.env.SHOW_REACT_QUERY_DEV_TOOLS === 'true'; return ( {children} {showReactQueryDevtools && } ); }