Skip to content

I get a Can't call setState (or forceUpdate) on an unmounted component error, when i open the drop down and navigate away to a diffrent page #180

Closed
@nreact

Description

@nreact

I am running into this error , warning.js:33 Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. .

This happens when I have the drop down box open and I navigate away to a different page . I am just using simple DropdownTreeSelect data={this.data} and data is just sample data provided in sand box examples.

Weird thing is this issue happens only the first time , meaning if I go back to the page where drop down exists and I try to repro the issue the warning does not appear.

Is there some kind of event or set state that gets called when the drop down box is opened ? Is there some kind of clean up I need to do to recover from this situation ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions