remove element from store array createStore([])
hi, i need to move element in store to the front of the array or delete it and add it to the front. i used signals, now switching to store.
1 Reply
something isn't working?
I tend to do
setStore(store => ...manipulate store here...)
otherwise you can create infinite loops:
will run forever.
this might not do what u expect it to do. you are mutating cards
here too.
u could look into produce
: https://docs.solidjs.com/reference/stores/store-utilities