Reactive Store for a For html element?
Hi I have created a store using createStore but when I access it in a for element it doesnt update reactive. How can I do that?
9 Replies
The store is a list of user objects
I want the html (<For each={users}><For/>} to update when e.g. user[0].online updates
okay now I did it with the accessor of the index
<For each={users}>{(user, i) => {}}<For/>
but is there a better way?you need to show the code that didn't work
this should work, how do you update the users?
data is just some object with content being a boolean
sure this also should work
can you try minimal repro in https://playground.solidjs.com/
on it
hmm it seems to work in the playground
ha, that is why I said it looks like this should work
anything else you think you are missing?
I just updated my code just like in my playground and now it works
lol
I don't know what was wrong
ty