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
inland-turquoiseOP•14mo ago

extended-yellow•14mo ago
can you please provide a complete minimal example?
inland-turquoiseOP•14mo 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.