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

[material-nextjs] Fix order of emotion server #40409

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

siriwatknp
Copy link
Member

The createEmotionServer has to be called directly after cache creation due to the side effect of cache.compat = true, otherwise the <style> tag will not come with the HTML string from the server.

@siriwatknp siriwatknp added bug 🐛 Something doesn't work nextjs labels Jan 3, 2024
@mui-bot
Copy link

mui-bot commented Jan 3, 2024

Netlify deploy preview

https://deploy-preview-40409--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 200428e

Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

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

Looks good, left one comment for addressing before merging.

…3.tsx

Signed-off-by: Marija Najdova <mnajdova@gmail.com>
@mnajdova mnajdova merged commit b7dd80a into mui:master Jan 3, 2024
19 checks passed
@oliviertassinari
Copy link
Member

oliviertassinari commented Jan 5, 2024

@siriwatknp Thanks for fixing this regression 👍 .

I noticed it because https://validator.w3.org/nu/?doc=https%3A%2F%2F658990a51b4291000981a3bd--material-ui-docs.netlify.app%2F would spam so many errors:

Screenshot 2024-01-05 at 23 29 26

@oliviertassinari oliviertassinari added the regression A bug, but worse label Jan 7, 2024
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work nextjs regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants