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

[core] Optionally delay useTransitionStatus's entering status with a param #887

Merged

Conversation

mj12albert
Copy link
Member

@mj12albert mj12albert commented Nov 28, 2024

Split from #807 (comment) since keepMounted={false} needs some rework

Collapsible depends on having 1 frame between open and entering to measure the size of the panel contents

https://deploy-preview-887--base-ui.netlify.app/experiments/collapsible-transitions

@mj12albert mj12albert added the core Infrastructure work going on behind the scenes label Nov 28, 2024
@mui-bot
Copy link

mui-bot commented Nov 28, 2024

Netlify deploy preview

https://deploy-preview-887--base-ui.netlify.app/

Generated by 🚫 dangerJS against 5e827dc

@mj12albert mj12albert force-pushed the fix/delay-starting-transition-status branch 3 times, most recently from 0d49af3 to 247a12e Compare November 28, 2024 09:43
@mj12albert mj12albert marked this pull request as ready for review November 28, 2024 09:48
@mj12albert mj12albert removed the request for review from colmtuite November 28, 2024 09:48
* @ignore - internal hook.
*/
export function useTransitionStatus(open: boolean, enabled = true) {
export function useTransitionStatus(open: boolean, enabled = true, delayStartingStatus = false) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@atomiks or delayEnteringStatus? If we're not renaming it internally #877

Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated ~

@mj12albert mj12albert removed the request for review from michaldudak November 28, 2024 09:49
@mj12albert mj12albert changed the title [core] Optionally delay useTransitionStatus's entering/starting status with a param [core] Optionally delay useTransitionStatus's entering status with a param Nov 28, 2024
@mj12albert mj12albert merged commit 0f24514 into mui:master Nov 28, 2024
23 checks passed
@mj12albert mj12albert deleted the fix/delay-starting-transition-status branch November 28, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants