Alex Lohr
&& in <Show> when condition and typescript?
Then we need to fix https://docs.solidjs.com/reference/components/show
27 replies
&& in <Show> when condition and typescript?
The benefit here is to test something that typescript cannot possibly discern, but you already know is true: that if the condition inside the when-prop is true, the value is present. So it is perfectly OK to use the exclamation mark in that case. Just don't go over board with it.
27 replies