Skip to content

Issue with Link Component Typing When Generating Routes Programmatically #2433

Closed Answered by schiller-manuel
roflc0pter asked this question in Q&A
Discussion options

You must be logged in to vote

if you build the route tree by looping over the array, TS types cannot be inferred. you must explicitly define each route just like the docs explain it:

https://tanstack.com/router/latest/docs/framework/react/guide/code-based-routing

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by roflc0pter
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants