issues
search
LottieFiles
/
lottie-react
lottie web player as a react component
https://lottiefiles.com
MIT License
720
stars
80
forks
source link
fix: 🐛 React 18 strict mode double animation
#94
Closed
theashraf
closed
2 years ago
theashraf
commented
2 years ago
Description
Introduced
unmounted
flag to avoid creating animation when the
<Player />
gets mounted, unmounted and mounted back in the strict mode.
Added the animation asset to the react app assets to avoid flaky and speed up cypress tests
Introduced React 18 to the react app under cypress
Type of change
[x] Patch: Bug (non-breaking change which fixes an issue)
[ ] Minor: New feature (non-breaking change which adds functionality)
[ ] Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist
[ ] This is something we need to do.
closes #92
Description
unmounted
flag to avoid creating animation when the<Player />
gets mounted, unmounted and mounted back in the strict mode.Type of change
Checklist
closes #92