Skip to content

[core] Remove onRendered from Modal and Portal#22464

Merged
eps1lon merged 3 commits intomui:nextfrom
eps1lon:feat/Portal/remove-onrendered
Sep 4, 2020
Merged

[core] Remove onRendered from Modal and Portal#22464
eps1lon merged 3 commits intomui:nextfrom
eps1lon:feat/Portal/remove-onrendered

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 Introduces changes that are not backward compatible. scope: modal Changes related to the modal. component: Portal 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
@oliviertassinari oliviertassinari added scope: portal Changes related to the portal. and removed component: Portal labels Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Introduces changes that are not backward compatible. scope: modal Changes related to the modal. scope: portal Changes related to the portal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants