Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cleanup native SVG animations #232

Merged
merged 1 commit into from
Mar 4, 2021
Merged

fix: cleanup native SVG animations #232

merged 1 commit into from
Mar 4, 2021

Conversation

LewisYearsley
Copy link
Contributor

@LewisYearsley LewisYearsley commented Mar 4, 2021

Summary

When using native SVG which is currently animating and that component is unmounted without the animated prop ever becoming false, then the animation, which works recursively, is not cleaned up and will continue in the background. This change breaks the recursion loop when the component is unmounted.

This was found while running detox tests on a React Native application - this was causing the synchronisation engine to wait forever for the never-ending animation.

Related Issue #[issue number]

(Possibly) #125

Any Breaking Changes

None

Checklist

  • Are all the test cases passing?
  • [] If any new feature has been added, then are the test cases updated/added?
  • [] Has the documentation been updated for the proposed change, if required?

@danilowoz
Copy link
Owner

Thanks! Makes sense for me

@danilowoz danilowoz merged commit db8f64b into danilowoz:master Mar 4, 2021
@github-actions
Copy link

github-actions bot commented Mar 4, 2021

🎉 This PR is included in version 6.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants