Replies: 1 comment
-
So this works, but you have to wrap every breadcrumb in a function:
Still trying to find a way to make an array type-safe. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a universal page header component:
The problem here is that
LinkProps
is too generic and doesn't provide type safety for each of the array items.I see a few people asking about this here and on Discord. I think it would be useful to establish an example, as I can't find anything that works with the latest release.
There are a few discussions around this already, but the solutions are not fully type safe for
params
andsearch
:#570
#635
Wrapping a single
<Link>
in a typesafe way seems to be done like this:Adapted from https://discord.com/channels/719702312431386674/1192472012585705504
Some insight into the current behavior here: #924
Beta Was this translation helpful? Give feedback.
All reactions