import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; import { RouterProvider } from '@tanstack/react-router'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import './index.css'; import './i18n/config'; import { AuthProvider } from '@/features/auth/context/AuthProvider'; import { useAuth } from '@/features/auth/context/auth-context'; import { Toaster } from '@/components/ui/sonner'; import { router } from '@/router'; import { getAppConfig } from '@/lib/config'; import { initSentry } from '@/lib/sentry'; import { SentryErrorBoundary } from '@/components/SentryErrorBoundary'; import { UmamiAnalytics } from '@/components/UmamiAnalytics'; // First, before the query client and before render, so an error during startup is still captured. // A no-op when no DSN is configured. initSentry(); document.title = getAppConfig().appTitle; const queryClient = new QueryClient({ defaultOptions: { queries: { retry: 1, refetchOnWindowFocus: true }, }, }); function BootstrapSplash() { return (