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] Remove onRendered from Modal and Portal #22464

Merged
merged 3 commits into from
Sep 4, 2020

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Sep 3, 2020

Breaking changes

  • [core] Remove onRendered from Modal and Portal
    Depending on your use case either use a callback ref on the child element or an effect hook in the child component.

Planned removal (see #20012) and #16262 (comment) for context.

We haven't had any use case internally and for app code callback refs and effect hooks exist.

@eps1lon eps1lon added breaking change component: modal This is the name of the generic UI component, not the React module! component: Portal The React component. labels Sep 3, 2020
@eps1lon eps1lon added this to the v5 milestone Sep 3, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Sep 3, 2020

Details of bundle changes

Generated by 🚫 dangerJS against 147f2dc

@eps1lon eps1lon merged commit f5a5eca into mui:next Sep 4, 2020
@eps1lon eps1lon deleted the feat/Portal/remove-onrendered branch September 4, 2020 08:15
@oliviertassinari oliviertassinari mentioned this pull request Sep 15, 2020
42 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change component: modal This is the name of the generic UI component, not the React module! component: Portal The React component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants