Viktor Havrylin

Results comments of Viktor Havrylin

But `StyleSheetManager` can be used multiple times, for example, in my project I have three instances of StyleSheetManager, because I have three local frames created by react-frame-component.

@enderlabo Firstly, you have an extra bracket in second media query. Secondly, please, provide a reproduction with https://codesandbox.io

@gregorianisch create-react-app now has official TypeScript support and has already migrated from UglifyJS to terser. Maybe upgrade of your toolset can help you.

Added failing test https://github.com/styled-components/styled-components/pull/2128

@mxstbr but it's not SSR bug in total

@mxstbr I get it. I just made a little research and found difference in behavior: without StyleSheetManger `StyleSheet.deferredInject` is used, and with StyleSheetManger - `StyleSheet.inject`.

Don't think that it is expected behavior. Also example from docs https://www.styled-components.com/docs/basics#attaching-additional-props works in similar way: ![image](https://user-images.githubusercontent.com/110616/47260819-0dd03a80-d4cb-11e8-8b3d-33120ac64402.png)

@shiningjason @mxstbr What's interesting is that [email protected] works much the same but instead of camelCase props are inserted in lowercase and React doesn't warn about this. ![image](https://user-images.githubusercontent.com/110616/47265731-29702b00-d535-11e8-8778-aba45a06d6f0.png)

Fixed in #2133 However, pay attention to #2093. It will add new way to tell which attributes should pass as html attributes

@probablyup @mkascel Similar to https://github.com/Pomax/react-onclickoutside/issues/231#issuecomment-333174275 there was two versions of `react-dom`. https://github.com/styled-components/styled-components/pull/2142 will fix it