diff --git a/src/App.tsx b/src/App.tsx index 344858af..1ce4e8e6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -23,7 +23,7 @@ import { MediaDevicesProvider } from "./livekit/MediaDevicesContext"; import { widget } from "./widget"; import { useTheme } from "./useTheme"; -const SentryRoute = Sentry.withSentryReactRouterV6Routing(Route); +const SentryRoute = Sentry.withSentryReactRouterV7Routing(Route); interface SimpleProviderProps { children: JSX.Element; diff --git a/src/initializer.tsx b/src/initializer.tsx index 46eb5952..ba22081a 100644 --- a/src/initializer.tsx +++ b/src/initializer.tsx @@ -224,7 +224,7 @@ export class Initializer { dsn: Config.get().sentry?.DSN, environment: Config.get().sentry?.environment, integrations: [ - Sentry.reactRouterV6BrowserTracingIntegration({ + Sentry.reactRouterV7BrowserTracingIntegration({ useEffect: React.useEffect, useLocation, useNavigationType,