Custom link component params reducer type error
I have this custom link component in order to play nice with tailwind catalyst components:
And I'm now using params to build a path link and getting this TS error:
I cannot figure out how to resolve it. The paths are building correctly, the links working fine. I found some gh issues similar but regarding search params
Thank you take care
1 Reply
absent-sapphire•3mo ago
you should use
creatLink
https://tanstack.com/router/latest/docs/framework/react/guide/custom-link#createlink-for-cross-cutting-concernsCustom Link | TanStack Router React Docs
While repeating yourself can be acceptable in many situations, you might find that you do it too often. At times, you may want to create cross-cutting components with additional behavior or styles. Yo...