Skip to content

feat(tanstack): Register a route provider from the TanStack router matcher - #23554

Draft
logaretm wants to merge 1 commit into
awad/route-provider-vuefrom
awad/route-provider-tanstack
Draft

feat(tanstack): Register a route provider from the TanStack router matcher#23554
logaretm wants to merge 1 commit into
awad/route-provider-vuefrom
awad/route-provider-tanstack

Conversation

@logaretm

@logaretm logaretm commented Aug 24, 2026

Copy link
Copy Markdown
Member

Registers a route provider from the TanStack Router matcher in the react, solid and vue packages.

resolveRouteMatch already existed in all three, just scoped inside afterAllSetup. Hoisting it lets the provider reuse it rather than restating the match rules.

Worth flagging: these three files are ~60% identical and have drifted. #23299 taught only the react copy to prefer router.state.location for the initial pageload match. Left alone here since it is a behavior fix that deserves its own PR.

Part of #23556

@github-actions

github-actions Bot commented Aug 24, 2026

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) 48.76 kB - -
@sentry/core/server 64.95 kB - -
@sentry/core/browser 52.48 kB +0.72% +373 B 🔺
@sentry/node 117.49 kB +0.03% +24 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 82.03 kB +0.03% +24 B 🔺
@sentry/aws-serverless 91.46 kB +0.03% +22 B 🔺
@sentry/cloudflare (withSentry) - minified 194.68 kB - -
@sentry/cloudflare (withSentry) 481.3 kB - -

View base workflow run

@logaretm
logaretm force-pushed the awad/route-provider-tanstack branch from eae10c7 to dc3ca38 Compare August 24, 2026 20:11
@logaretm
logaretm force-pushed the awad/route-provider-tanstack branch from dc3ca38 to 0291fba Compare August 24, 2026 20:17
@logaretm
logaretm force-pushed the awad/route-provider-tanstack branch from 0291fba to 2c93abd Compare August 24, 2026 20:27
@logaretm
logaretm force-pushed the awad/route-provider-tanstack branch from 2c93abd to c4319f7 Compare August 24, 2026 20:52
…tcher

Hoists the existing `resolveRouteMatch` helper out of `afterAllSetup` in each of
the three packages so the provider can reuse it, rather than restating the match
rules. The matcher is already stateless, so nothing else had to change.
@logaretm
logaretm force-pushed the awad/route-provider-tanstack branch from c4319f7 to ad1b053 Compare August 24, 2026 20:57
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