What I did is I shifted the updating and reordering logic on backend, so my frontend would send only edited item, not the whole state of items.
And based on the nearest right item id I update position of changed item on backend