frontend-collective/react-sortable-tree

Using the react-sortable-tree in react 18

OrMeirchak opened this issue · 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?

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

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?

solution!

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

@gaeundev Thank you! It works :)