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(useAnimations): ensure API result updates with clips and root #1593

Conversation

arcturus3
Copy link
Contributor

@arcturus3 arcturus3 commented Aug 1, 2023

Why

Previously actualRef did not update if a new root argument was passed. Additionally, the clips, names, and actions of the API did not update if a new clips argument was passed.

Resolves #1481, resolves #1548.

What

Correctly update the API and ref in appropriate effects.

Checklist

  • Ready to be merged

Sorry, something went wrong.

Previously `actualRef` did not update if a new `root` argument was passed.
Additionally, the `clips`, `names`, and `actions` of the API
did not update if a new `clips` argument was passed.
@vercel
Copy link

vercel bot commented Aug 1, 2023

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

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 9, 2023 0:10am

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 1, 2023

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 9bb79e3:

Sandbox Source
admiring-austin-2ck2gj Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

@github-actions
Copy link

🎉 This PR is included in version 9.80.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@drcmda
Copy link
Member

drcmda commented Aug 20, 2023

@arcturus3 @CodyJasonBennett i had to revert, it broke uneAnimation for most boxes i've tried it with, for instance https://codesandbox.io/s/pecl6?file=/src/Model.js actions are null in useEffect for some reason. @arcturus3 could you look at it and find the problem? then we make a unified pull again with all changes included.

@arcturus3
Copy link
Contributor Author

arcturus3 commented Aug 20, 2023

@drcmda Yep, I'll take a look at it tonight.

@arcturus3
Copy link
Contributor Author

@drcmda @CodyJasonBennett See #1620.

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 does not update actions useAnimations is not updating on clip effects
3 participants