TanStackT
TanStack8mo ago
17 replies
primary-violet

Passing premade link to Link component

I am using Tanstack Router in a repo with the backend containing some basic routes. Those routes are built in the backend and passed to the frontend, so I do not need to generate any more parameters or the like.

However, I've run into an issue where trying to add it into a link like
<Link to={notification.link}>{/* ... */ }</Link>

Would simply result as a href="#" as output. Can I somehow preserve the functionality of the Link component ( no refresh of the window ) while passing it a premade link?
Was this page helpful?