Skip to content

Unable to integrate with React Router due to basename prop #3107

@JasonTheAdams

Description

@JasonTheAdams

Package + Version

  • @sentry/tracing

Version:

5.28.0

Description

According to the documentation when integrating with React Router (v5) we're supposed to the use the base Router component instead of the BrowserRouter component. The reason for this, I assume, is because the latter ignore the history prop.

We have an issue, however, that the BrowserRouter component has a basename prop which we make use of. If I switch to Router, then that prop no longer exists and our routes stop working.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions