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

Stop all AnimationActions on unmount/mixer change #1176

Merged

Conversation

trebeljahr
Copy link
Contributor

Why

resolves #1175

What

Added useEffect to stop actions when the mixer changes.

Checklist

[ x ] Documentation updated
[ x ] Storybook entry added
[ x ] Ready to be merged

Comments

Not sure, if this is ready to be merged tbh. but it fixes my bug at least... But it might have second-order consequences that I am not aware of / think of since I am quite new to the whole drei/r3f/three.js ecosystem.

@vercel
Copy link

vercel bot commented Dec 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
drei ✅ Ready (Inspect) Visit Preview Dec 11, 2022 at 0:18AM (UTC)

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b7523fa:

Sandbox Source
cool-zhukovsky-q1np1u Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

@github-actions
Copy link

🎉 This PR is included in version 9.46.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@trebeljahr trebeljahr deleted the trebeljahr-fix-use-animation branch April 15, 2023 11:48
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.

useAnimations doesn't clean up animation state on component un-mount
2 participants