We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
GlobalStyles
<GlobalStyles styles={globalStyle} />
As you can see: Action: I used GlobalStyles component. Except: only create one <style> tag. Actual: it created multiple <style> tags.
It's not reasonable, any props to config it? or whether can optimize it directly.
The text was updated successfully, but these errors were encountered:
Hello @xingqiwu55555,
In what context are you using TSS? With Next App Dir? Next App Router? Vite? What method are you using for setting up SSR?
https://docs.tss-react.dev/ssr/next.js ? https://www.npmjs.com/package/@mui/material-nextjs ?
If you could come up with a repro that would be great.
At least on Vite I was unable to reproduce.
Beside, the GlobalStyles util from tss is almost a direct reexport of the global style from @emotion/react.
@emotion/react
Sorry, something went wrong.
No branches or pull requests
<GlobalStyles styles={globalStyle} />
As you can see:
Action: I used
GlobalStyles
component.Except: only create one <style> tag.
Actual: it created multiple <style> tags.
It's not reasonable, any props to config it? or whether can optimize it directly.
The text was updated successfully, but these errors were encountered: