Skip to content

React Router - Support Lazy-Loaded Routes #15040

Closed
@onurtemizkan

Description

@onurtemizkan

Problem Statement

Ref: #15027

In the current version, lazy-loaded routes in the React Router are not parameterized correctly in the SDK.

We are able to parameterize up to the deepest non-lazily loaded route, and no further as we are not able to reach the full routes tree.

Solution Brainstorm

We can investigate whether we can implement a solution using the currently-unstable "Fog of War" on React Router 7 to get the full routes tree and whether we can traverse it and create parameterized transactions.

  • React Router Implementation - Link
  • React Router API Reference - Link

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: reactIssues related to the Sentry React SDKPackage: react-routerIssues related to the Sentry React Router SDK

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions