Closed ilanus closed 7 years ago
@strues It appears that renderToNodeStream
returns the initial SSR render before all styled-components style is collected. I'm not sure what is a good solution around it?
Fixing this right now.
Fixed e0bd16720e128b41fb349e0b3046ee2f01abc90d
Looks great! that's what I had in mind, do you think that using both renderToString
, renderToNodeStream
is fine in terms of performance?
It seems that after recent changes, the server does not compile styled-components chunks the className is there but css is empty. and there's an error from the console
Warning: Failed context type: Invalid context
styled-components-stylesheetof type
StyleSheetsupplied to
Component, expected instance of
StyleSheet.
If Javascript is turned on everything is works fine, any idea what's missing?