question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to find node on an unmounted component.

See original GitHub issue

Reporting 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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:13

github_iconTop GitHub Comments

12reactions
OR13commented, Nov 7, 2020

As noted https://github.com/frontend-collective/react-sortable-tree/issues/830#issuecomment-722396912

Downgrading to:

    "react": "16.14",
    "react-dom": "16.14",
    "react-scripts": "4.0.0",
    "react-sortable-tree": "^2.8.0",

Resolved this issue for me.

10reactions
ArashArzandehcommented, Jun 5, 2021

Just set onChange={(treeData) => setItems([…treeData])} isVirtualized={false}

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found