I'm using the example of react-sortable-tree but it's not working on react 17.0.1.
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 <Scrolling(List)> 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 (
<div style={{ height: 400 }}>
<SortableTree
treeData={this.state.treeData}
onChange={treeData => this.setState({ treeData })}
/>
</div>
)
}
}