From d9e0c673152e196eacc73c15b6ff97fe298f5421 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Mon, 13 Jan 2025 16:34:44 +0000 Subject: [PATCH] Use correct Sentry entrypoints for react router v7 (#2943) --- src/App.tsx | 2 +- src/initializer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,