svelte-dnd-action icon indicating copy to clipboard operation
svelte-dnd-action copied to clipboard

Rollback dnd action

Open Spaceman2019 opened this issue 3 years ago • 1 comments

Hello, I have several lists between which I can move objects via dnd. I save the individual shifts via a rest service. If something goes wrong with the save, what's the best way to roll back the shift? Is there a function for this or do I have to do this manually? Thanks for help

Spaceman2019 avatar Nov 28 '22 10:11 Spaceman2019

I think maybe you can save some sort of state locally and depending on your response from the API, change the items.

webdagger avatar Nov 28 '22 10:11 webdagger