Skip to content

Reuse type of <Link to="" #429

Discussion options

You must be logged in to vote

@Moshyfawn thanks! That does work 🎉

@tannerlinsley I am not quite sure if I am following, I tried using the MakeLinkOptions, but I am not quite sure what to pass where:

Signature:

MakeLinkOptions<TAllRouteInfo, '/', TTo>
const routeConfig = createRouteConfig()
MakeLinkOptions<typeof routeConfig, '/', ?>

Doesn't seem to be quite right, do you have an example? Once you do, I happily put something into a sandbox as an example under guides or some if you think there is a fitting place for it.

Maybe part of the Links guide?

Replies: 7 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@xxidbr9
Comment options

@tatwater
Comment options

@ChetreNelson
Comment options

@xxidbr9
Comment options

Comment options

You must be logged in to vote
1 reply
@tatwater
Comment options

Comment options

You must be logged in to vote
2 replies
@tannerlinsley
Comment options

@Patrick-Ullrich
Comment options

Answer selected by Patrick-Ullrich
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bodasooqa
Comment options

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