buildLink gone?
#1215
Replies: 2 comments
-
Since this function seems to be gone, we went and spent a whole work-week refactoring all our |
Beta Was this translation helpful? Give feedback.
0 replies
-
Bumping this. Is there a recommended way to generate final route paths in a typesafe manner? |
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
-
Hi
After trying to upgrade from
0.0.1-beta.185
to1.16.6
I noticed thatbuildLink
function ofuseRouter
is gone. We have used it to generate link props for our ownAnchor
component. Like this:I noticed that there is now a built-in
Link
component. However, we would prefer using our ownAnchor
component. It is defined in an external component library, which does and should not know anything about TanStack Router.What is the current way to build custom links via props instead of using the built-in
Link
component?EDIT: We have also used the
useLinkProps
hook function for generating link props. It could probably replacebuildLink
, but since it is a hook, it cannot be used inside utility functions which usebuildLink
for generating links with certain parameters. 😞Beta Was this translation helpful? Give feedback.
All reactions