[transitions] Performance improvements & misc fixes by mj12albert · Pull Request #48151 · mui/material-ui (original) (raw)
Updates Slide/Grow/Fade/Collapse to avoid creating a new style object whenever possible (no external style prop), and clear transitions set on inline styles to free up the compositor layer on invisible elements
Additional fixes:
- Removed
isWebKit154workaround as it's already outside browserslistrc - Removed
-webkit-transform/-webkit-transitionas supported browsers don't require the prefix anymore - Factor out shared
normalizedTransitionCallback - Improved some tests
- I have followed (at least) the PR section of the contributing guide.