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

Support useRoutes with React Router 6 integration #5338

Closed
onurtemizkan opened this issue Jun 29, 2022 · 0 comments · Fixed by #5624
Closed

Support useRoutes with React Router 6 integration #5338

onurtemizkan opened this issue Jun 29, 2022 · 0 comments · Fixed by #5624
Assignees
Labels
Feature: Spans Package: react Issues related to the Sentry React SDK Type: Improvement

Comments

@onurtemizkan
Copy link
Collaborator

Problem Statement

Current version of React Router 6 integration only supports routes configured as <Route> components under <Routes>.

We also need to support routes defined as objects using useRoutes hook.

Solution Brainstorm

The current version already recreates and works on the same route object, so we may make it possible to be provided by the user, without requiring a wrapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Spans Package: react Issues related to the Sentry React SDK Type: Improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants