You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So Reorder.Group.onReorder method calls every time item changes its position during the drag. But that doesn't mean that DnD is finished. If I continue drag from the beginning of the list to its end - I will see multiple onReorder calls. So, I cannot use onReorder as a trigger for issues a api request call.
My question is: how to reliably detect that item reached its final destination after all reorder events, and dropped, so I can persist new state of elements on the server via api call?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
So Reorder.Group.onReorder method calls every time item changes its position during the drag. But that doesn't mean that DnD is finished. If I continue drag from the beginning of the list to its end - I will see multiple onReorder calls. So, I cannot use onReorder as a trigger for issues a api request call.
My question is: how to reliably detect that item reached its final destination after all reorder events, and dropped, so I can persist new state of elements on the server via api call?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions