You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(vue-router): add styles to Vue RouteMatchExtensions augmentation #7318
The RouteMatchExtensions interface in packages/vue-router/src/Matches.tsx is missing a styles field, unlike the React and Solid counterparts which include it.
This gap pre-dates PR #7311 (feat: add support for deferred head loading), which added key?: string support to the existing fields but did not introduce the missing styles entry for Vue.
Required Change
Add the following field to the RouteMatchExtensions module augmentation in packages/vue-router/src/Matches.tsx:
This should be placed alongside meta, links, scripts, and headScripts to match the React/Solid augmentations and provide full type coverage for keyed/deferred head().styles in Vue.
Activity
romulovalez commentedon May 2, 2026
codeRabbit didn't get it completely right, it mixed with the changes from my PR, the required change should be this:
And we need to introduce this block on headContentUtils.ts:
and spread
styles.valueon the returnschiller-manuel commentedon May 2, 2026
why is this issue opened at all? what triggered this?
romulovalez commentedon May 2, 2026
@schiller-manuel This triggered this issue (open the comment): packages/vue-router/src/Matches.tsx I though it was a deliberative feature, it also created two instead of one.
The real issue here is that we're silently skipping all styles from head on vue router, next time I will open the issue manually hahaha.
This PR solves this issue.