-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[wip] Improve RTL switch on docs #45360
base: master
Are you sure you want to change the base?
Conversation
Netlify deploy previewhttps://deploy-preview-45360--material-ui.netlify.app/ Bundle size report |
docs/pages/_app.js
Outdated
<AppWrapper emotionCache={emotionCache} pageProps={pageProps}> | ||
{getLayout(<Component {...pageProps} />)} | ||
</AppWrapper> | ||
<CacheProvider value={emotionCache}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reminds me of another problem. Why do we expose @mui/material-nextjs
to users if we don't fully use it on the docs (we only use documentGetInitialProps from it, but not AppCacheProvider)? We should move to dogfood it?
(Arguably, it's a @mui/system-nexjs
module but that's another problem)
Fixes #44534
The main change is reverting #28495I am bringing back again this change. There is a big difference between components pages vs other pages that needs to be investigated. I had a false positive when doing this change because I was not testing the components pages.
Preview: https://deploy-preview-45360--material-ui.netlify.app/