Why when I set the state in an IonReorder it creates a random order

Please see the stackblitz. I just want to be able to reorder an array in items and then save that order as the new state of items. Why does this not work? Every time I change the order it gives me a random order back. If I don’t use setItems it works fine. But reordering without saving it in state is not useful for me.

Is there something about IonReorder that I don’t understand?

setItems is not a function. your code is incomplete.

1 Like

Thanks, I forgot to put a useState there. But even if I do that it still re-arranges the order after I move the order around.