T
TanStack13mo ago
sunny-green

How to get the available routes as a type

Is there a way to get the available paths as in /, /about, /profile etc. as a type?
3 Replies
optimistic-gold
optimistic-gold13mo ago
GitHub
How to ensure a pathname variable is part of my routeTree ? · TanSt...
I have a use-case where a global component shows a "go back" link. I'd like to configure the target of this go back link per Route. Instead of moving the component from a global layou...
harsh-harlequin
harsh-harlequin12mo ago
@Manuel Schiller thoughts on adding this to the docs, I think this is a enough of a common use case, I speant ages trying to find this solution.
optimistic-gold
optimistic-gold12mo ago
feel free to create a PR

Did you find this page helpful?