SolidJSS
SolidJSโ€ข3mo agoโ€ข
5 replies
Aspecky

How do I create a signal that can be a value or null?

I tried doing:
const [val, setVal] = createSignal<string | null>(null)

but then val is infered as Accessor<string>
Was this page helpful?