Makes sense. This will work fine for a handful of components.
What I have in mind right now is keeping the state on the server and have hundreds of components use that state. That may get messy using signals.
Or how would you do sth like this (client side pseudo code)
for component in 1..1000 do
<component /> <-- this creates a signal that wants to talk to the server
end
SolidJS’ createStore will create sth like this
[store, setStore] = getProxies(createSignal([
getProxies(createSignal(<element_0_initial>)),
getProxies(createSignal(<element_1_initial>)),
...
]))
for createStore([<element_0_initial>, ..])
So its easy to handle more complex state, but not trivial to share with the server I think.
Sorry for getting offtopic, this is about signals and will do a fine job if that’s what needed






















