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!
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
5 Replies

Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
or (with all helper)
https://playground.solidjs.com/anonymous/5e50028e-d100-41a2-9334-f8f5dc0d26e8
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
I'll copy this here in case anyone searche for it. Type narrow for multiple signals
Both options look really good 🚀 Thank you!