Leocardoso94 / animated-number-react

Super easy way to animate numbers with React
MIT License
103 stars 13 forks source link

Starting from zero #31

Open mrgazanfarli opened 3 years ago

mrgazanfarli commented 3 years ago

Hi! Firstly, I want to thank you for such a great package. In my case, I animate numbers which come from Redux. Whenever one of the numbers is updated, the value starts counting up (or down) from zero. Could you please explain what the issue, or fix it?

thenickcox commented 3 years ago

I'm also having this issue, not using Redux (just plain component state). I'm happy to submit a PR, but I don't fully understand the issue, because the demos don't do that.

lgiacomazzi commented 3 years ago

any news regarding this issue?

weagertron commented 3 years ago

It seems to be an issue introduced in 0.1.2. I worked around this issue by downgrading to 0.1.1 in my package.json and now it doesn't go back down to 0 each time

abrman commented 3 years ago

It seems to be an issue introduced in 0.1.2. I worked around this issue by downgrading to 0.1.1 in my package.json and now it doesn't go back down to 0 each time

Thanks! This worked for m!

SeedyROM commented 2 years ago

Any progress on this as bug fix for the latest version? Any ideas on the cause?

Jared0430 commented 2 years ago

I was able fix this, even on the latest version, by providing a key prop that doesn't change with the value

Oops, nope I was still on 0.1.1, sorry!

vikasSainiFacctum commented 1 year ago

Yep version 0.1.1 fixed it for me too.