Skip to content

fix(vue): Refresh pageload URL attrs on TanStack onResolved#22140

Merged
Lms24 merged 2 commits into
developfrom
fix/vue-tanstack-pageload-onresolved
Jul 10, 2026
Merged

fix(vue): Refresh pageload URL attrs on TanStack onResolved#22140
Lms24 merged 2 commits into
developfrom
fix/vue-tanstack-pageload-onresolved

Conversation

@Lms24

@Lms24 Lms24 commented Jul 9, 2026

Copy link
Copy Markdown
Member

Pageload onResolved only refreshed URL attributes when the resolved routeId changed. Redirects landing on the same route template with different pathname or params left stale url.path, url.full, and param attributes on the span.

This PR always applies the resolved route match on pageload onResolved, matching navigation behavior.

@Lms24 Lms24 force-pushed the fix/vue-tanstack-pageload-onresolved branch from e0de32c to dc4941c Compare July 9, 2026 14:02
@Lms24 Lms24 self-assigned this Jul 9, 2026
@Lms24 Lms24 marked this pull request as ready for review July 9, 2026 16:49
@Lms24 Lms24 requested a review from a team as a code owner July 9, 2026 16:49
@Lms24 Lms24 requested review from chargome, mydea and s1gr1d and removed request for a team July 9, 2026 16:49
Comment thread packages/vue/src/tanstackrouter.ts

@chargome chargome left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread packages/vue/src/tanstackrouter.ts
Lms24 and others added 2 commits July 10, 2026 15:30
Pageload onResolved only updated url.path, url.full, and param attributes
when the resolved routeId differed from the initial match. Redirects to the
same route template with different params left stale URL fields on the span.

Co-Authored-By: Cursor <cursoragent@cursor.com>
@Lms24 Lms24 force-pushed the fix/vue-tanstack-pageload-onresolved branch from dc4941c to 82a356b Compare July 10, 2026 13:38
@Lms24 Lms24 enabled auto-merge (squash) July 10, 2026 13:38
@Lms24 Lms24 merged commit 6c52fe8 into develop Jul 10, 2026
57 checks passed
@Lms24 Lms24 deleted the fix/vue-tanstack-pageload-onresolved branch July 10, 2026 13:58
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.

2 participants