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] Drop support for non-ref-forwarding class components #21811

Merged
merged 5 commits into from
Jul 17, 2020

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Jul 16, 2020

Class components not forwarding their ref to the underlying DOM (or host) component are no longer supported. If you were using unstable_createStrictModeTheme or didn't see any StrictMode warnings regarding findDOMNode then this change is not breaking.

unstable_createStrictModeTheme stays for now as a no-op in case we need it again during v5 development.

Has a deprecation in place (via StrictMode).

TODO:

  • [ ] revisit StrictModeViolation comments Updating these in a follow-up

@eps1lon eps1lon added breaking change package: lab Specific to @mui/lab package: material-ui Specific to @mui/material labels Jul 16, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Jul 16, 2020

@material-ui/core: parsed: -0.39% 😍, gzip: -0.61% 😍
@material-ui/lab: parsed: -0.30% 😍, gzip: -0.51% 😍

Details of bundle changes

Generated by 🚫 dangerJS against f000950

@eps1lon eps1lon marked this pull request as ready for review July 16, 2020 15:04
@eps1lon eps1lon marked this pull request as draft July 16, 2020 15:31
@eps1lon eps1lon marked this pull request as ready for review July 16, 2020 16:11
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

It feels great to get ride of this logic

docs/src/pages/guides/migration-v4/migration-v4.md Outdated Show resolved Hide resolved
packages/material-ui/src/Collapse/Collapse.test.js Outdated Show resolved Hide resolved
packages/material-ui/src/utils/useIsFocusVisible.js Outdated Show resolved Hide resolved
@eps1lon eps1lon merged commit 750cdfe into mui:next Jul 17, 2020
@eps1lon eps1lon deleted the feat/findDOMNode-removal branch July 17, 2020 09:32
@eps1lon eps1lon mentioned this pull request Jul 20, 2020
7 tasks
@eps1lon eps1lon added this to the v5 milestone Aug 4, 2020
@eps1lon eps1lon mentioned this pull request Aug 5, 2020
42 tasks
@oliviertassinari oliviertassinari added core Infrastructure work going on behind the scenes and removed package: material-ui Specific to @mui/material package: lab Specific to @mui/lab labels Jan 9, 2021
@eps1lon eps1lon added package: material-ui Specific to @mui/material and removed core Infrastructure work going on behind the scenes labels Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants