Use correct Sentry entrypoints for react router v7 (#2943)

This commit is contained in:
Hugh Nimmo-Smith
2025-01-13 16:34:44 +00:00
committed by GitHub
parent 497ee3c7f7
commit d9e0c67315
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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,