wonrax
Difference between `setState` and `produce`?
I've been trying for a while and it seems impossible to make a reproducible code but this is the closest I can get:
https://playground.solidjs.com/anonymous/ef126951-8ad2-4aa6-ac89-91bd1b40fb0b
With this code the
createEffect
in the child component is registered and fired correctly (mine is not). But if you cycle through the buttons they behave weirdly. The first button you click will have its state changed when you click other buttons, my app also behaves like this. Maybe this is closely related to the problem.12 replies