next is not a function
jamesarosen opened this issue · comments
James A Rosen commented
We have a <VelocityTransitionGroup>
as follows:
<VelocityTransitionGroup
enter={{
animation: 'fadeIn',
display: 'flex',
duration: 150,
delay: 0,
}}
leave={{
animation: 'fadeOut',
duration: 150,
delay: 90,
}}
>
…
</VelocityTransitionGroup>
In certain circumstances -- I'm not sure exactly, but it might be when we've unmounted the parent component before the animation finishes -- we get an exception here in velocity.js
(v1.5.2). That next
is from $.queue
. Nothing in the $.queue
docs suggest that next
will ever be null.
This may be a bug for jQuery or Velocity or may be a problem with how we're using the code; please let me know if you think I should file this elsewhere.
Fiona Hopkins commented
Hrm. Yeah, I’m not sure if that’s something that velocity-react
has any effect over. I suspect it’s an issue with either Velocity or jQuery.