WinterCore / react-text-transition

Animate your text changes
MIT License
601 stars 26 forks source link

React 18 support? #45

Closed mozzius closed 2 years ago

mozzius commented 2 years ago

I think something breaks when trying to use with React 18 - the text still changes but there's no animation

WinterCore commented 2 years ago

Hey.

Yeah, unfortunately I've been a bit busy lately. I'll try to look into it as soon as I have some time. Feel free to submit a PR if you're in a hurry.

Thanks

mozzius commented 2 years ago

Ah no worries. Just thought you should be aware

mozzius commented 2 years ago

Had a look at fixing it myself but updating the React version locally worked without a hitch, so I don't really know what's going on.

Here's a codesandbox reproduction: https://codesandbox.io/s/react-text-transition-react-18-demo-yy0vum

DonSmog commented 2 years ago

I think something breaks when trying to use with React 18 - the text still changes but there's no animation

I'm facing the same issue. There's transition but no animation. When I navigate away from the screen and return back, there's a split seconds animation. Thinking its a react 18 issue

WinterCore commented 2 years ago

Hey @Mozzius & @DonSmog

This issue has been resolved in v2.0.0, make sure you install the latest version.

Thanks for reporting this and sorry for the delay.