I'm using TransitionGroupPlus to perform enter and leave animations of a component based on mouseover and mouseout on another target element(s). Seeing a bunch of errors like this when moving the mouse quickly on an off various targets:
So component is undefined here - I suspect already unmounted. What do you think about changing this line to if (component && component.componentDidEnter). I'll admit I haven't read all the source yet, so I don't know if such a change is likely to cause other problems. The change does work for me locally.
I you do agree, I'm happy to submit the tiny PR if you like ;)
I'm using
TransitionGroupPlus
to perform enter and leave animations of a component based on mouseover and mouseout on another target element(s). Seeing a bunch of errors like this when moving the mouse quickly on an off various targets:So
component
isundefined
here - I suspect already unmounted. What do you think about changing this line toif (component && component.componentDidEnter)
. I'll admit I haven't read all the source yet, so I don't know if such a change is likely to cause other problems. The change does work for me locally.I you do agree, I'm happy to submit the tiny PR if you like ;)