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

Animation issues

Open m5tt opened this issue 6 years ago • 2 comments

I'm encountering two issues with animations set to true on Bar Graphs.

First, i have several useEffect's on my component that update the state, these work fine but when i turn animations on, whenever the state is updated it gives me this warning:

backend.js:1 Warning: 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. in Motion (created by Animation)

Second, when animations are turned on, the onValueClick callback for Bar Graphs completely seizes to work at all.

Any insight on this?

m5tt avatar Aug 27 '19 19:08 m5tt

For me updating the state causes the above warning and the animation stops working

artm avatar Dec 28 '20 14:12 artm

@artm Does it sound like the issue at #1176?

tony avatar Jan 03 '21 02:01 tony