How to set global navigator.userAgent in server-side rendering #2356
Labels
component: GlobalStyles
The React component.
package: styles
Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
The styles/auto-prefix.js auto-prefixer warns that, "Material-UI expects the global navigator.userAgent to be defined for server-side rendering. Set this property when receiving the request headers."
https://github.com/callemall/material-ui/blob/master/src/styles/auto-prefix.js#L10
Anyone have any example of this being implemented, or have suggestions on how to do this?
The text was updated successfully, but these errors were encountered: