React-spring: [Werid Behavior] Trail will render wrong value except first child.

Created on 12 Jul 2018  路  3Comments  路  Source: pmndrs/react-spring

First, thank you for this wonderful library!
Please see this official example of Trail except opacity is 0 ~ 1
Edit x3w3mpj1qq
image
As you can see, when the animation ends, the number is decreasing rather than 1 (only the first child is 1)
I think this is unexpected behavior.
Don't know what do you think? Thanks.

bug

Most helpful comment

this took a while, had to figure out a way to do tail call throttling without adding too many bytes to this lib. but it should work as expected now.

All 3 comments

@rockmandash i think i know what it could be. Trail is pretty expensive so i throttle it a little, its probably missing the tail call. I'll look into it.

@drcmda Thank you for your fast reply.

this took a while, had to figure out a way to do tail call throttling without adding too many bytes to this lib. but it should work as expected now.

Was this page helpful?
0 / 5 - 0 ratings