-
-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: <DraggableCore> not mounted on DragStart! when trying to use in NextJS #941
Comments
We’re seeing the same problem. For us react-rnd works well with Next version 14.1.3 but dragging no longer works as of versions 14.2+, also including unfortunately the brand new Next v15 release candidate. I spent some time debugging this a couple of weeks ago and this is what I think is happening, from memory. A callback ref function is passed from react-rnd via However, for some reason, in recent Next.js and/or React that callback ref function is never invoked, so the ref from draggable doesn’t get passed back up through the hierarchy to where it is needed. I don’t know why the behaviour of the callback ref has changed or broken, and I haven’t found any mention of this being a deliberate or expected change in latest React. |
I have found that fairly minimal and related code changes to both |
@jmurty @nikshepsvn 10.4.11 published. could you please try it? |
Thanks very much for the quick merges @bokuweb! I can confirm that the latest version 10.4.11 of |
I'm currently seeing the above error when using NextJS and react-rnd, anything I'm missing? Latest version of the library and on Chrome
The text was updated successfully, but these errors were encountered: