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

Changing state causes rerender that breaks animations

Open cdfa opened this issue 6 years ago • 0 comments

Hi, I am trying to use the <Toggle> container to control the animation of a component, but the animations snaps between start and end instead of actually animating. This seems to be due to the children of the <Toggle> being completely re-rendered, instead of receiving new prop values.

I think styleguidist had a similar issue: https://github.com/styleguidist/react-styleguidist/issues/51

If you want I can provide a reproduction repo, but the setup is a little complicated.

cdfa avatar Aug 04 '19 20:08 cdfa