You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect either neither onStart or onRest, or both, be called with an immediate animation. Instead only onStart is called. This causes some issues in our application because I want to render the content slightly differently (lower quality images) if we are currently in an active animation. If I setState({ isAnimating: true }) in onStart it will not be reset if the animation is was in immediate mode.
That's generally a hard call, theres some async stuff that relies on a started spring to conclude, for instance keyframes or now useChain. If a spring could just "do nothing" when started, promises would potentionally never finish. Do you need it for something particular?
I am sliding between really large images and I get better performance if I can replace them with lower quality thumbnails while the animation is active. When you first go to a link to a specific slide I want it to be immediate and don't scroll through all previous ones.
aleclarson
changed the title
onStart but not onRest not called on immediate animations
onRest is not called for immediate animations
Apr 1, 2019
I would expect either neither onStart or onRest, or both, be called with an immediate animation. Instead only onStart is called. This causes some issues in our application because I want to render the content slightly differently (lower quality images) if we are currently in an active animation. If I
setState({ isAnimating: true })
inonStart
it will not be reset if the animation is was inimmediate
mode.The text was updated successfully, but these errors were encountered: