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
![](https://utfs.io/f/55085f5c-1893-4f09-81d7-5dbb9a8a7b34-4pl4mu.png)
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
![](https://utfs.io/f/1dce7292-15ee-43d1-b55b-693bb6658a91-4pl4mu.png)
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