Skip to content

Commit

Permalink
Use correct Sentry entrypoints for react router v7 (#2943)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns authored Jan 13, 2025
1 parent 497ee3c commit d9e0c67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/initializer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d9e0c67

Please sign in to comment.