Create a RouterLink alias to Link #658
prabirshrestha
started this conversation in
Ideas
Replies: 1 comment
-
I don't think it would add value to the library – as you said, you can always alias the imports manually. If you find this solution tedious, you could add a file export { Link as RouterLink, ... } from "@tanstack/router"; And then, in your files: import { RouterLink, ... } from "<path/to/tanstack-router.ts>"; |
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.
-
Is is common to use router with other UI Libraries. It will be good if
RouterLink
is provided as an alias forLink
so we don't need to rename it. This plays well with editors that auto imports. Right now I need to keep doing this manually.Beta Was this translation helpful? Give feedback.
All reactions