SolidJSS
SolidJS9mo ago
5 replies
Victoria

Review Show wrapper for multiple signals in TypeScript

Hello!

I need your help reviewing a solution I created. I initially encountered a problem when using Solid + TypeScript to conditionally render multiple signals. I want to pass several signals to a Show component that may contain undefined values and, within the children function, access all the passed signals separately.

https://playground.solidjs.com/anonymous/cd0b9dce-db4a-400f-88b9-8a23ea88e05e
Here is an example of the Show wrapper I created. It works as expected, but I’d appreciate your help identifying any potential pitfalls or edge cases. Thanks for your help!
Quickly discover what the solid compiler will generate from your JSX template
Was this page helpful?