-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
[core] Optionally delay useTransitionStatus
's entering
status with a param
#887
[core] Optionally delay useTransitionStatus
's entering
status with a param
#887
Conversation
Netlify deploy preview |
0d49af3
to
247a12e
Compare
* @ignore - internal hook. | ||
*/ | ||
export function useTransitionStatus(open: boolean, enabled = true) { | ||
export function useTransitionStatus(open: boolean, enabled = true, delayStartingStatus = false) { |
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.
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.
Yeah I haven't renamed it internally, so we should match entering
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.
Updated ~
useTransitionStatus
's entering
/starting status with a paramuseTransitionStatus
's entering
status with a param
247a12e
to
5e827dc
Compare
Split from #807 (comment) since
keepMounted={false}
needs some reworkCollapsible depends on having 1 frame between
open
andentering
to measure the size of the panel contentshttps://deploy-preview-887--base-ui.netlify.app/experiments/collapsible-transitions