FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(react-router): Register a route provider backed by resolved routes by logaretm · Pull Request #23560 · getsentry/sentry-javascript · GitHub

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

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

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

Conversation

logaretm commented Aug 24, 2026
edited
Loading

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.

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.

Part of #23556

logaretm force-pushed the awad/route-provider-react-router branch from 68e4f6e to 4fbacb2 Compare August 24, 2026 20:27

github-actions Bot commented Aug 24, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.57 kB - -
@sentry/browser - with treeshaking flags 26.92 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB - -
@sentry/browser (incl. Tracing) 48.34 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.36 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.25 kB - -
@sentry/browser (incl. Tracing, Replay) 87.74 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.2 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.45 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.13 kB - -
@sentry/browser (incl. Feedback) 45.81 kB - -
@sentry/browser (incl. sendFeedback) 33.36 kB - -
@sentry/browser (incl. FeedbackAsync) 38.47 kB - -
@sentry/browser (incl. Metrics) 29.52 kB - -
@sentry/browser (incl. Logs) 29.8 kB - -
@sentry/browser (incl. Metrics & Logs) 30.45 kB - -
@sentry/react 30.33 kB - -
@sentry/react (incl. Tracing) 50.52 kB - -
@sentry/vue 35.4 kB - -
@sentry/vue (incl. Tracing) 50.59 kB +0.54% +271 B 🔺
@sentry/svelte 28.6 kB - -
CDN Bundle 30.68 kB +1.21% +366 B 🔺
CDN Bundle (incl. Tracing) 49.24 kB +0.75% +366 B 🔺
CDN Bundle (incl. Logs, Metrics) 32.93 kB +1.21% +393 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 51.12 kB +0.76% +385 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 73.27 kB +0.5% +363 B 🔺
CDN Bundle (incl. Tracing, Replay) 86.66 kB +0.38% +325 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.53 kB +0.44% +380 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 92.43 kB +0.4% +367 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.34 kB +0.36% +335 B 🔺
CDN Bundle - uncompressed 91.14 kB +1.35% +1.21 kB 🔺
CDN Bundle (incl. Tracing) - uncompressed 147.33 kB +0.83% +1.21 kB 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.44 kB +1.26% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 153.02 kB +0.8% +1.21 kB 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 226.38 kB +0.54% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.6 kB +0.46% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.28 kB +0.45% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 280.3 kB +0.44% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.96 kB +0.43% +1.21 kB 🔺
@sentry/nextjs (client) 53.31 kB +0.47% +249 B 🔺
@sentry/sveltekit (client) 49.16 kB +0.83% +403 B 🔺
@sentry/core/server 64.95 kB - -
@sentry/core/browser 52.48 kB +0.72% +373 B 🔺
@sentry/node 117.49 kB +0.02% +23 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 82.03 kB +0.03% +23 B 🔺
@sentry/aws-serverless 91.46 kB +0.03% +21 B 🔺
@sentry/cloudflare (withSentry) - minified 194.68 kB - -
@sentry/cloudflare (withSentry) 481.3 kB - -

View base workflow run

logaretm force-pushed the awad/route-provider-react-router branch from 4fbacb2 to 2d6425b Compare August 24, 2026 20:39
logaretm force-pushed the awad/route-provider-react-router branch from 2d6425b to 25b30a7 Compare August 24, 2026 20:52
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.
logaretm force-pushed the awad/route-provider-react-router branch from 25b30a7 to 0af152c Compare August 24, 2026 20:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL