Link Component is requiring search prop
I've been trying to use the link component, but they all have type errors because they say that the
search prop is required. Would love more info here.
10 Replies
like-gold•3y ago
@KevinVandy https://discord.com/channels/719702312431386674/1035834698087272529/1141067732167700521
on mobile can't share code snippet
ratty-blushOP•3y ago
ok, this wasn't a custom link component though, imported strait from tanstack
like-gold•3y ago
can you share type for navigation array
ratty-blushOP•3y ago
welp
just figured out adding
as const fixed it for melike-gold•3y ago
same error if you set type to string

ratty-blushOP•3y ago

like-gold•3y ago
you can remove as const and set type to
ratty-blushOP•3y ago
I knew this was typesafe, but dang
like-gold•3y ago
we had a whole discussion about it, will see be added to docs
judicial-coral•3y ago
I meant it!