Open tdolsen opened 5 months ago
Hi!
I explain it here: https://nuxt-typed-router.vercel.app/usage/how-to-use#pagesnestedtitleuseridindexvue
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.
It's a complicated case
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![image](https://github.com/victorgarciaesgi/nuxt-typed-router/assets/180510/22d70eb0-b977-4757-b8be-f0e09db19f50)
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