Link wrapper requires params
I am using a wrapper around Link from Mantine called NavLink.
typescript complains that it is missing the
params property...
where plain old <Link to={myroute.to} /> works fine.
Is there a suggested pattern to avoid this typescript error?2 Replies
quickest-silverOP•3y ago
Seems related to this: https://github.com/mantinedev/mantine/issues/4134
GitHub
Polymorphic components don't work with Tanstack Router · Issue #413...
What package has an issue @mantine/core Describe the bug So I was using the Tanstack Router and I tried using the polymorphic components and that throws some sort of error. I think it has something...
quickest-silverOP•3y ago
so as a workaround, i'm not using <NavLink component={Link}, but rather just using NavLink and useNavigate and doing the navigate by hand onClick... :/
or this slightly less bad solution...