Skip to content
public-library›Rules›TanStack Router›Use Link for navigation users can open, and redirect in the router

Use Link for navigation users can open, and redirect in the router

Render navigation the user triggers directly as a <Link>. Use useNavigate only for navigation that follows an action, such as after a form submits, and redirect with beforeLoad or <Navigate> rather than an Effect.

In the full rule