Unable to find node on an unmounted component.
See original GitHub issueReporting a Bug?
import React from 'react';
import SortableTree from 'react-sortable-tree';
import 'react-sortable-tree/style.css';
class App extends React.Component{
state = {
treeData: [
{ title: 'Chicken', children: [{ title: 'Egg' }] },
{ title: 'Fish', children: [{ title: 'fingerline' }] },
],
};
render() {
return(
<div>
<SortableTree
treeData={this.state.treeData}
/>
</div>
)
}
}
export default App;
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:13
Top Results From Across the Web
React 16: Error: Unable to find node on an unmounted ...
Based on the error message, I believe the error is happening when calling ReactDOM.findDOMNode(this) in the handleClickOutside(event) method.
Read more >Bug: Uncaught Error: Unable to find node on an unmounted ...
Hi, I used react-sortable-tree package im my react project in component named Tree: import React, { Component } from "react"; import axios ...
Read more >Unable to find node on an unmounted component error
Coming soon: A brand new website interface for an even better experience!
Read more >Unable to find node on an unmounted component after React ...
Coding example for the question ReactDOM.render: Unable to find node on an unmounted component after React upgrade from 16.4.2 to 16.5.2-Reactjs.
Read more >Unable to find node on an unmounted component. react版本 ...
Unable to find node on an unmounted component. react版本升级遇到的bug ... 差资料发现是react和react-dom版本不一致导致的,但是我的版本都已经升级到了 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As noted https://github.com/frontend-collective/react-sortable-tree/issues/830#issuecomment-722396912
Downgrading to:
Resolved this issue for me.
Just set onChange={(treeData) => setItems([…treeData])} isVirtualized={false}