CreateLink makes all routes "active"
So I want to combine mantine's
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
It works perfectly, but I loose the type safety on the
Any idea why this doesn't / what I'm doing wrong ?
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 componentIt works perfectly, but I loose the type safety on the
to prop.Any idea why this doesn't / what I'm doing wrong ?
Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.

