Index child route search params type issue
Consider the following scenario:
- I have a
documentsRoute which does have a path, but is's just an Outlet.
- There's a documentRoute, which is a child of documentsRoute, which is the index (path: "/") for the parent as well
- The documentRoute has a search param year, validated by zod
- When using useNavigate(documentRoute.id) in the documentRoute, and using the resulting navigate function without a to, you get a type error.
is there something wrong with my setup, is this an unsupported scenario or just a bug?
Thanks!
Repro: https://stackblitz.com/edit/github-fbut9a?file=src%2Fmain.tsx,src%2FDocument.tsx%3AL8&theme=darkStackBlitz
Router navigate type issue - StackBlitz
Run official live example code for Router Basic, created by Tanstack on StackBlitz
0 Replies