Grahf
Why is this not reactive? (using signal + html open attribute)
I only ask because it feels like a question for a job interview. I could be wrong. event ,loop seems so abstract and people want you to know about it... Sorry didn't mena to hijack thread I will watch video π
22 replies
Why is this not reactive? (using signal + html open attribute)
I'm not sure. Things I can think of to try include....
Using a create effect. Check the value of the signal in the create effect and set open on the details accordingly. Would need a ref for the details. Then I think it would be ref.open=true or false. Something like that.
Or you could install nanostores or zustand. And use that to manage your state....guessing you don't want to do that. I wouldnt.
22 replies
Why is this not reactive? (using signal + html open attribute)
This works but it's kind of abckwards:
https://playground.solidjs.com/anonymous/baa4f2c3-0f8b-4bba-982c-09e53910fbfe
22 replies
Using Lucide Icons removes all components from the DOM.
The solution is to import the icon from your node modules folder. There's some kind of bug with lucid icons with solidJS. I can give you an example tomorrow if you have trouble finding the icon in your node modules folder
13 replies