-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
A way to be able to turn off autoprefixer #2530
Comments
There is a discussion going on in #684. However, what you ask is something different. @oliviertassinari Can this be even implemented? |
That's not ideal, radium is probably not autoprefixing every react element (futher down the tree).
What's the use case ? |
I think it does, but I'm not sure about this... I've patched import function of every material-ui component to be wrapped in Radium...
Radium is capable of passing userAgent through context, not global variable like material-ui. Due to racing condition with global variable, we cannot use your prefixing solution... |
Or just implement feature to be able to pass userAgent within context... |
I couldn't agree more. We need this feature 👍 |
Have you seens any performances issues when doing so? Regarding our current style approach, that's far from being ideal. We are going to have to improve it for various reason:
Wow, I had a look at the source code of Radium: https://github.com/FormidableLabs/radium/blob/master/src/resolve-styles.js. |
Well there is boolean variable, which checks if element was already visited, so it happens once per render. There was a lot of talk about performance in Radium's github, the results were not that bad... We are using simple animations, they never drop below 60fps. I think Radium's plugin architecture allows you to write plugin which would use immutable for checking if style prop has changed. |
@pristas-peter Thanks for your feedback! We are seriously considering the Radium option for this project. |
Feel free to ask anymore questions... Personally I would be very satisfied with that solution. |
Hi, we are using material-ui components wrapped in Radium. Since Radium does auto-prefixing by decorating the render method, which is also server-side rendering capable, there is no need for material-ui components to do the same thing. Currently there is no way to turn off this feature in material-ui, what we do is that we comment out methods in styles/auto-prefix.js do to nothing, but could there be implemented a better way, through theme manager or something similar?
The text was updated successfully, but these errors were encountered: