Filtering array in object keyed store inside a produce
In the snippet above I have a keyed object, for each key there is an array, that I filter, the filter doesn't seems working, what is the best way to do it?
I tried also:
https://playground.solidjs.com/anonymous/eaff2e17-2327-4890-95d8-5c30307672ea
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
9 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I updated the example, here it should be more clear, when you click the button
UPDATE DATA
I update the array with just some of the old objects, reming martin
and mark
, despite that and the filtr you can still see them
https://playground.solidjs.com/anonymous/7d0d22e7-e1af-4e27-8785-b2da846aeca9Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
nevermind I fixed it, my bad
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
that's why it wasn't working XD
idk if you updated the url but it still doesn't work as it should
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh yeah this works, I was figuring out if there was a way to do that without doing
since the Jobs can be dynamic
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
they are static for sake of semplicity but the data object come from some api, they can be more or less, they are dynamic, otherwise I would have created a store for each of the jobs
the button is just to explain the problem, in reality data get automatically updated
there is no button to update it
anyway I fixed resetting the whole object before mapping it