Don't fully understand solid's reactivity, help understand with a case

I have this repo https://github.com/Kisuyo/todo I created a component: https://github.com/Kisuyo/todo/blob/master/src/components/HamburgerMenu.tsx I also created a route with a signal: https://github.com/Kisuyo/todo/blob/master/src/routes/index.tsx#L22 I am coming from react so perhaps this is confusing to me but I thought that as I pass both the signal and the setter of signal to component here: https://github.com/Kisuyo/todo/blob/master/src/routes/index.tsx#L42 I thought when I try to change the signal state the dom should update but it doesn't. Doing solid tutorial again perhaps I misunderstand how reactivity works. Thank you for any help.
GitHub
GitHub - Kisuyo/todo
Contribute to Kisuyo/todo development by creating an account on GitHub.
GitHub
todo/HamburgerMenu.tsx at master · Kisuyo/todo
Contribute to Kisuyo/todo development by creating an account on GitHub.
GitHub
todo/index.tsx at master · Kisuyo/todo
Contribute to Kisuyo/todo development by creating an account on GitHub.
4 Replies
nikivi
nikiviOP2y ago
I think I use the styled-solid-components library correctly
fabiospampinato
that should be props.active for example I think those errors happen when the HTML that the server produced doesn't match the HTML that the client produced, no idea where the actual problem in the code is though
Want results from more Discord servers?
Add your server