S
SolidJS15mo ago
Ladvace

Object.entries not updating

I made a little example of my problem, basically I'm trying to loop with For over a keyed object with object.entries without much success https://playground.solidjs.com/anonymous/935af2d2-30b0-452e-a999-c6edef0e8d52
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
2 Replies
Otonashi
Otonashi15mo ago
the previous value passed by setStore doesn't track mutations made to it, use produce if you want to use it this way https://playground.solidjs.com/anonymous/cf9fdd43-b0e0-4879-a6e8-79bc47cefa40
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
Ladvace
Ladvace15mo ago
Thanks for the hint!