Description
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 ?