Skip to content

feat(react-router): Register a route provider backed by resolved routes - #23787

Closed
logaretm wants to merge 1 commit into
awad/route-provider-angularfrom
awad/route-provider-react-router
Closed

feat(react-router): Register a route provider backed by resolved routes#23787
logaretm wants to merge 1 commit into
awad/route-provider-angularfrom
awad/route-provider-react-router

Conversation

@logaretm

Copy link
Copy Markdown
Member

Registers a route provider for React Router framework mode.

The Data Router exposes its matches only through router state, and the package has no runtime dependency on react-router to call matchRoutes with, so the provider answers from routes already resolved rather than by matching.

Reuses getRouteTemplate (exported for this) rather than reading the leaf match, since nested routes carry paths relative to their parent and index and layout routes carry none. Records from both the hydrated router subscription and the instrumentation API, since each resolves routes the other never sees.

Part of #23556

The Data Router exposes matches only through router state, and the package has
no runtime dependency on `react-router` to call `matchRoutes` with, so the
provider answers from routes already resolved rather than by matching.

Splits `getMatchedRoute` out of `getParameterizedRoute` so the provider can tell
a matched route from the raw-pathname fallback, and records from both the
hydrated router subscription and the instrumentation API, since each resolves
routes the other never sees.
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.56 kB added added
@sentry/browser - with treeshaking flags 26.92 kB added added
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB added added
@sentry/browser (incl. Tracing) 48.96 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.97 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.89 kB added added
@sentry/browser (incl. Tracing, Replay) 88.47 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.8 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 93.16 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 106.11 kB added added
@sentry/browser (incl. Feedback) 46.05 kB added added
@sentry/browser (incl. sendFeedback) 33.62 kB added added
@sentry/browser (incl. FeedbackAsync) 38.73 kB added added
@sentry/browser (incl. Metrics) 29.51 kB added added
@sentry/browser (incl. Logs) 29.8 kB added added
@sentry/browser (incl. Metrics & Logs) 30.43 kB added added
@sentry/react 30.3 kB added added
@sentry/react (incl. Tracing) 51.17 kB added added
@sentry/vue 35.73 kB added added
@sentry/vue (incl. Tracing) 51.21 kB added added
@sentry/svelte 28.59 kB added added
CDN Bundle 30.72 kB added added
CDN Bundle (incl. Tracing) 49.82 kB added added
CDN Bundle (incl. Logs, Metrics) 32.98 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 51.7 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 73.51 kB added added
CDN Bundle (incl. Tracing, Replay) 87.28 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 89.15 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 93.2 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 95.14 kB added added
CDN Bundle - uncompressed 91.23 kB added added
CDN Bundle (incl. Tracing) - uncompressed 148.6 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.53 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 154.29 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 226.69 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 268.1 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 273.77 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.8 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 287.46 kB added added
@sentry/nextjs (client) 53.99 kB added added
@sentry/sveltekit (client) 49.74 kB added added
@sentry/core/server 65.67 kB added added
@sentry/core/browser 52.26 kB added added
@sentry/node 123.77 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.53 kB added added
@sentry/node - without tracing 88.03 kB added added
@sentry/node - without channel injection 103.18 kB added added
@sentry/aws-serverless 96.42 kB added added
@sentry/cloudflare (withSentry) - minified 201.04 kB added added
@sentry/cloudflare (withSentry) 500.26 kB added added

@logaretm logaretm closed this Aug 31, 2026
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.

1 participant