Skip to content

[core] Drop support for non-ref-forwarding class components#21811

Merged
eps1lon merged 5 commits intomui:nextfrom
eps1lon:feat/findDOMNode-removal
Jul 17, 2020
Merged

[core] Drop support for non-ref-forwarding class components#21811
eps1lon merged 5 commits intomui:nextfrom
eps1lon:feat/findDOMNode-removal

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 Introduces changes that are not backward compatible. package: lab Specific to the lab. package: core 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 force-pushed the feat/findDOMNode-removal branch from 7d43c97 to 54f2f1b Compare July 16, 2020 14:38
@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

@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 internal Behind-the-scenes enhancement. Formerly called “core”. and removed package: core package: lab Specific to the lab. labels Jan 9, 2021
@eps1lon eps1lon added package: core and removed internal Behind-the-scenes enhancement. Formerly called “core”. labels Jan 11, 2021
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants