createLink causes weird behavior with component?
I've built a table row that I have also wrapped up in a
createLink
. Felt like a great idea at first to help me distribute the type safety of the router on a component that I'd like to link to another page. But it causes this weird behavior with the styles.
How do I stop it from doing that?
3 Replies
correct-apricotOP•11mo ago

sensitive-blue•11mo ago
can you please provide a complete minimal example?
correct-apricotOP•11mo ago
Hmm, I'm having trouble reproducing it outside my own project. Guess I'll just figure it out.
thanks though
For anyone else with this issue, it was because I was allowing the link props to overwrite the className on the original component. Had to merge it with a
cn
or twMerge
function.