mui / material-ui

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

Style tags is not coming in header for material ui 5 like material UI 4 #38830

Closed davidcooper025 closed 10 months ago

davidcooper025 commented 1 year ago

Duplicates

Latest version

Steps to reproduce πŸ•Ή

Link to live example: Create a hello world type application which uses mui 5

related issue: https://stackoverflow.com/questions/76753732/style-tags-not-coming-in-mui-5-react

Current behavior 😯

When the project is build with material UI 4 then the style is loaded in header, which helps in case bots want to traverse the website but in mui5 style tag is not loaded in header because of which bots website broken styled website.

Expected behavior πŸ€”

MUI 5 should also allow style tags to be loaded in header, which helps in case bot traverse the website

Context πŸ”¦

I want to integrate Google Adsense to the website build with mui5 and reactjs. I am using prerender.io to prerender the website so that the bots can traverse the website efficiently. I have another website which is built on material ui 4 with reactjs and prerender.io, that works perfect.

Your environment 🌎

Any envionment

davidcooper025 commented 11 months ago

@brijeshb42 I am facing this in multiple projects now, just wanted to check in which release are we targeting to apply this fix?

ZeeshanTamboli commented 10 months ago

Duplicate of #37167

ZeeshanTamboli commented 10 months ago

Also related to #33562.