TanStack / router

🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering.
https://tanstack.com/router
MIT License
7.19k stars 486 forks source link

`MatchRoute`'s `to` props no longer infers path correctly in v1.31.0 #1533

Closed fguitton closed 2 weeks ago

fguitton commented 2 weeks ago

Describe the bug

In version 1.31.0 and above, the to parameter of MatchRoute no longer infers the correct values appropriately. This was tested to function with version up to and including 1.30.1

Your Example Website or App

https://stackblitz.com/edit/github-7m2hn3?file=src%2Froutes%2F__root.tsx

Steps to Reproduce the Bug or Issue

  1. In the IDE see the squiggly red lines on the MatchRoute component

Expected behavior

The route paths should be resolved properly

Screenshots or Videos

No response

Platform

Additional context

No response