dnd-kit-sortable-tree
dnd-kit-sortable-tree copied to clipboard
Slight 1-frame visual glitch on drop until state update resolves
There is a relatively minor, but still noticeable jump upon drop that would be great to be resolved.
I believe the transform that's being applied while dragging gets removed on drop, so there's a 1 frame/processor-tick delay until setState(changedItems) resolves on the next render.
Video here:
https://github.com/Shaddix/dnd-kit-sortable-tree/assets/7915687/55cb2979-8041-4f7e-829d-2319ffbfcd2b
Original related issue: https://github.com/Shaddix/dnd-kit-sortable-tree/issues/19
Let me know if I can provide any more info to help debug!
👋 @maxhudson have you found a workaround by a chance?