Skip to content
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

Using the react-sortable-tree in react 18 #940

Open
OrMeirchak opened this issue Mar 28, 2023 · 4 comments
Open

Using the react-sortable-tree in react 18 #940

OrMeirchak opened this issue Mar 28, 2023 · 4 comments

Comments

@OrMeirchak
Copy link

OrMeirchak commented Mar 28, 2023

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?

@keshav100
Copy link

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

@matin-mortazavi
Copy link

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?

@gaeundev
Copy link

solution!

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

@NetanelElimelech
Copy link

@gaeundev Thank you! It works :)

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

No branches or pull requests

5 participants