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

Using the react-sortable-tree in react 18

Open OrMeirchak opened this issue 3 years ago • 4 comments

I recently updated the react version in the project I'm working on from "16.2.0" to "18.2.0". Since doing this I get the following errors:

uncaught error: unable to find node on an unmounted component TypeError: this.clearMonitorSubscription is not a function. the above error occurred in <scrolling(List)> component

Searching the internet shows that the "react-sortable-tree" library is no longer supported in react 18. And this is probably the reason for these errors.

Is there anyone who managed to work with the library in react 18?

OrMeirchak avatar Mar 28 '23 08:03 OrMeirchak

Same issue i am facing. Unable to find any solution so I started to develop my own version. Still, it is incomplete. https://github.com/keshavgautam/react-sortable-tree-by-keshav

keshav100 avatar May 17 '23 07:05 keshav100

I recently updated the react version in the project I'm working on from "16.2.0" to "18.2.0". Since doing this I get the following errors:

uncaught error: unable to find node on an unmounted component TypeError: this.clearMonitorSubscription is not a function. the above error occurred in <scrolling(List)> component

Searching the internet shows that the "react-sortable-tree" library is no longer supported in react 18. And this is probably the reason for these errors.

Is there anyone who managed to work with the library in react 18?

could u find any solution?

matin-mortazavi avatar Mar 04 '24 08:03 matin-mortazavi

solution!

<SortableTree
  {...props}
  isVirtualized={false}
/>

gaeundev avatar May 30 '24 01:05 gaeundev

@gaeundev Thank you! It works :)

NetanelElimelech avatar Jun 10 '24 14:06 NetanelElimelech