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

change hooks lifecycle to account for component reloading #256

Merged
merged 4 commits into from
May 14, 2024

Conversation

bodymovin
Copy link
Contributor

@bodymovin bodymovin commented May 13, 2024

fixes #255
this PR changes some parts of our hooks lifecycle to reload an animation if it has been previously destroyed.

Copy link
Contributor

@HayesGordon HayesGordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! From my testing, this works as expected

@bodymovin bodymovin merged commit 8bb5652 into main May 14, 2024
1 check passed
@bodymovin bodymovin deleted the 255-react_hook_reload branch May 14, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

react hook does not reload when it is destroyed
2 participants