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
Describe the bug
When using NuxtLink to link to nested sub pages from a page with params, those params are not identified as defaults, and have to be redefined in :to.
Expected behavior
As with how RouterLink/NuxtLink actually works, I expect the typed overload to identify which params are available for a given page, and make those params optional when using NuxtLink.
As the type system cannot know where you're navigating from, it's not really possible. You could be navigating from any other non-nested pages and the params should be required.
Describe the bug
When using
NuxtLink
to link to nested sub pages from a page with params, those params are not identified as defaults, and have to be redefined in:to
.Expected behavior
As with how
RouterLink
/NuxtLink
actually works, I expect the typed overload to identify which params are available for a given page, and make those params optional when usingNuxtLink
.Screenshots
pages/okr/ice/index.vue
:Environnement infos
Linux
v18.19.0
3.10.2
3.10.1
2.8.1
pnpm@8.15.3
-
devtools
,modules
nuxt-typed-router@3.5.1
-
Your
pages
folder structureYour nuxt.config.ts
The text was updated successfully, but these errors were encountered: