-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Animate: type getAnimateClassName #27123
Conversation
Size Change: +8 B (0%) Total Size: 1.19 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
39ebf5a
to
8d7f5a2
Compare
packages/components/src/index.js
Outdated
@@ -14,7 +14,7 @@ export { | |||
export { default as __experimentalAlignmentMatrixControl } from './alignment-matrix-control'; | |||
export { | |||
default as Animate, | |||
useAnimate as __unstableUseAnimate, | |||
getAnimateClassName as __experimentalGetAnimateClassName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed this was __unstable
- not intended for use outside of Gutenberg. Should it stay that way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're confident in the API, we can stabilise it? The question is, do we intend to use this for future animations, or are there new methods there days? Cc @jasmussen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sad to say I've not had enough of a chance to leverage this one quite yet, to make a call. However I recall @youknowriad being pretty excited about it?
or are there new methods there days?
I think there's a place for both, perhaps even with emphasis on the class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I can land this PR with the rename and keep it marked unstable. A follow-up could mark it experimental or stabilize.
Restored unstable in d510658
0f71b55
to
d510658
Compare
@ellatrix I know you approved this, but it wasn't ready at the time so I'm disregarding. I can't actually dismiss the review for some reason 🤷♂️ I do think it's ready for review at this time 🙇♂️ |
Thanks for catching those mistakes, @saramarcondes. I've cleaned them up. |
Consider my approval given for any additional commits. Looks like there's still a few tests failures, but other than that it looks good! |
c2d6dba
to
44e5917
Compare
53d9699
to
b0cadc6
Compare
I'll break this into 2 PRs - we shouldn't deprecate |
Description
useAnimate
togetAnimateClassName
(publicly__unstableGetAnimateClassName
) and treat it as a regular function. It's implementation is not like a hook and it doesn't need to be treated as one.getAnimateClassName
.Closes #26965 (supersedes).
How has this been tested?
Types of changes
getAnimateClassName
.Checklist: