CreateLink makes all routes "active"
So I want to combine mantine's
NavLink
with the type safety of Tanstack's Link
component.
I followed this link
https://tanstack.com/router/latest/docs/framework/react/guide/custom-link#createlink-with-third-party-libraries
And came to this code
In my nav component:
This makes all my links "active", not only the one selected
If I directly use the NavLink
and pass Link
as a component
It works perfectly, but I loose the type safety on the to
prop.
Any idea why this doesn't / what I'm doing wrong ?TanStack | High Quality Open-Source Software for Web Developers
Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.

0 Replies