Add href param to ComponentProps for relative, typesafe, routes. #13115
kentcdodds
started this conversation in
Proposals
Replies: 2 comments
-
That would be awesome, relative paths are one of the best parts of RR Links. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same need: I've refactored a piece of my app to use What @kentcdodds proposed would elegantly solve the issue, and it seems very doable in the current typegen architecture. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here's what I did before the
href
utility was introduced:Here's what I do now that we have it:
I like this because it's typesafe. I don't like it because I lost my relative paths.
What if we could do this:
Notice that we get relative back and they can be typesafe.
Beta Was this translation helpful? Give feedback.
All reactions