Show-tag with callback for multiple values
hi all 👋
Is there currently a way to use the Show tag in the callback-form to validate and pass on multiple values? Something like ?
11 Replies
that's my guess
when={a() && b() && [a(), b()] as const}
that almost seem to do the trick
would you know a way to keep the types seperate?
no clue why
&&
wasn't working, but this does
nice thanks!!
hu, strange. it was typed correctly for a second and then it lost the typings again
i guess it's a bit too much for tsc
as const is needed to make it into a tuple
ooo ok gotcha
yes that's it lol
Also Show accepts a generic type too
<Show<[string, Dimensions]> when={...} />
nice one to know
component with generic looks funky