react-sortable-tree icon indicating copy to clipboard operation
react-sortable-tree copied to clipboard

Runtime Error on dragging nodes quickly.

Open UeharaYou opened this issue 1 year ago • 1 comments

It seems that there's some async issues on managing target IDs while rendering node / placeholders.

==== Environment ==== Mac mini M2 | macOS 14.3 | Firefox 118.0.1 & Safari 17.3 | React 18.2 (It's device and OS dependent and works fine when viewing from my iOS devices.)

==== Ways to Reproduce ==== Placeholder failed to render and dragging a node rapidly over a tree could possibly throw a run-time error (which is impossible to catch since it's raised from the React-dnd bundle).

==== Error Message ==== Expected targetIds to be registered. invariant@http://localhost:3000/static/js/bundle.js:1610:24 checkInvariants@http://localhost:3000/static/js/bundle.js:10076:68 hover@http://localhost:3000/static/js/bundle.js:10053:20 @http://localhost:3000/static/js/bundle.js:10375:43 @http://localhost:3000/static/js/bundle.js:141623:31

==== Media ==== https://github.com/nosferatu500/react-sortable-tree/assets/48004590/64b13272-bc25-4271-8331-c94eedee64b8

UeharaYou avatar Dec 22 '23 11:12 UeharaYou

having same issue,

    "react-dnd": "13.0.1",
    "react-dnd-html5-backend": "12.1.1",

changing to this version works

cashwanikumar avatar May 07 '24 03:05 cashwanikumar