mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
94.02k stars 32.3k forks source link

[system] Add `disableClientRerender` to prevent extra rerendering #44451

Open siriwatknp opened 4 days ago

siriwatknp commented 4 days ago

closes #43263

Context

The current implementation contains rerendering to make the mode initially undefined on the client to prevent any hydration mismatch.

However, for apps that does not need this double rendering behavior they could not opt-out. This PR introduces a flag to opt-out this behavior.

The use case for this flag are:


mui-bot commented 4 days ago

Netlify deploy preview

Bundle size report

Details of bundle changes (Toolpad) Details of bundle changes

Generated by :no_entry_sign: dangerJS against 83009b287707c2b27185d0f62f9e5401da10301a