Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(react): Improve React Router v6 error message #5853

Merged
merged 2 commits into from Sep 29, 2022

Conversation

AbhiPrasad
Copy link
Member

Indicate to users what parameters are not defined in debug logs.

@@ -203,9 +205,9 @@ export function withSentryReactRouterV6Routing<P extends Record<string, any>, R
const navigationType = _useNavigationType();

_useEffect(() => {
// Performance concern:
// This is repeated when <Routes /> is rendered.
routes = _createRoutesFromChildren(props.children);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually repeated internally by React Router 6. So caching doesn't fix it. But I don't think there is anything we can do anyways 🤷

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed!

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) September 29, 2022 12:42
@AbhiPrasad AbhiPrasad merged commit 584c4cb into master Sep 29, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-react-router-v6-define-routes branch September 29, 2022 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants