Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Runtime Error on dragging nodes quickly. #70

Open
UeharaYou opened this issue Dec 22, 2023 · 1 comment
Open

Runtime Error on dragging nodes quickly. #70

UeharaYou opened this issue Dec 22, 2023 · 1 comment

Comments

@UeharaYou
Copy link

UeharaYou commented Dec 22, 2023

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

@cashwanikumar
Copy link

having same issue,

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

changing to this version works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants