Skip to content

Conversation

@mnajdova
Copy link
Member

@mnajdova mnajdova commented Sep 1, 2021

GlobalStyles when rendered with styled-components update the <style> tag on each render (see #28070 for example). Adding a note on the documentation that will suggest to hoist the GlobalStyles to static const whenever possible.

@mnajdova mnajdova added the docs Improvements or additions to the documentation. label Sep 1, 2021
@mnajdova mnajdova requested a review from eps1lon September 1, 2021 10:06
@mui-pr-bot
Copy link

mui-pr-bot commented Sep 1, 2021

No bundle size changes (experimental)

Generated by 🚫 dangerJS against e31cd0e

@siriwatknp siriwatknp merged commit 7ac8793 into mui:next Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants