SolidJSS
SolidJSโ€ข3y agoโ€ข
7 replies
lemonad

createStore array containing arrays

I have a store that is an array of objects where some properties are arrays.

Then I do

<For each={props.store}>
{(item) => (
...
<For each={item.nested}>
{(item2) => (
...

In an onClick handler, I modify a property of one of the elements in the nested array but it seems the second For loop is not seeing the update. I'm not particularly surprised by this but how would I setup something like this in order for it to work?
Was this page helpful?