-
Notifications
You must be signed in to change notification settings - Fork 732
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
fix(useAnimations): ensure API result updates with clips
and root
#1593
Conversation
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.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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:
|
🎉 This PR is included in version 9.80.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@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. |
@drcmda Yep, I'll take a look at it tonight. |
Why
Previously
actualRef
did not update if a newroot
argument was passed. Additionally, theclips
,names
, andactions
of the API did not update if a newclips
argument was passed.Resolves #1481, resolves #1548.
What
Correctly update the API and ref in appropriate effects.
Checklist