react-vis-force icon indicating copy to clipboard operation
react-vis-force copied to clipboard

Animate: true causes state update even after component is unmounted

Open hasankhalid opened this issue 5 years ago • 0 comments

I get the error "Can't perform a React state update 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." whenever my InteractiveForceGraph is unmounted. The error appears in ForceGraph. I am probably doing something wrong because due to repeated state changes the react dev tools crash as well. Can anyone guide me over what i am doing wrong? I have attached an image of the component code Screen Shot 2019-03-25 at 11 53 29 AM

hasankhalid avatar Mar 25 '19 06:03 hasankhalid