Skip to content

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Sep 26, 2025

The React Router instrumentation created an additional navigation span on pageload.

On initial load, the lazy route has the history action POP and state idle. This leads to the generation of a navigation span.

I added a condition to early-return from handleNavigation if a page load is going on.

Closes issue (in Linear) https://linear.app/getsentry/issue/FE-551/configure-react-router-for-fully-parameterized-routes-with-sentry

@s1gr1d s1gr1d merged commit 22f8e5a into develop Sep 29, 2025
89 checks passed
@s1gr1d s1gr1d deleted the sig/fix-rr-navigation branch September 29, 2025 09:15
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.

3 participants