frontend-collective / frontend-collective/react-sortable-tree
react-sortable-tree not working on react 17.0.1
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 914
- PR merge metrics
- No merged PRs in 30d
Description
I'm using the example of react-sortable-tree but it's not working on **react 17**.
When I'm using react 16.14.0, it has no error and working fine.
**List of Errors:**
- Unable to find node on an unmounted component.
at findHostInstanceWithWarning
- Uncaught TypeError: this.clearMonitorSubscription is not a function
at ScrollingComponent.componentWillUnmount
- The above error occurred in the component:
```
import React from 'react'
import 'react-sortable-tree/style.css'
import SortableTree from 'react-sortable-tree'
class Areas extends React.Component {
constructor(props) {
super(props)
this.state = {
treeData: [
{ title: 'Chicken', children: [{ title: 'Egg' }] },
{ title: 'Fish', children: [{ title: 'fingerline' }] }
]
}
}
render() {
return (
this.setState({ treeData })}
/>
)
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.