import { QueryClientProvider } from '@tanstack/react-query'; import { lazy, Suspense } from 'react'; import { createPortal } from 'react-dom'; import OutermostErrorBoundary from './OutermostErrorBoundary'; import PageLoading from './PageLoading'; import { queryClient } from '../../lib/queryClient'; const MeteorProvider = lazy(() => import('../../providers/MeteorProvider')); const AppLayout = lazy(() => import('./AppLayout')); const AppRoot = () => ( {createPortal( <> , document.head, )} }> ); export default AppRoot;