threepointone / glamor

inline css for react et al
MIT License
3.66k stars 199 forks source link

When NODE_ENV=production hydratation is broken #382

Open julienfroidefond opened 6 years ago

julienfroidefond commented 6 years ago

We use the 2.20.40 version. This issue happens with SSR styled components.

We are using : glamor.renderStatic(() => ReactDOMServer.renderToString(element)); for extracting the css/dom.

We have issues when NODE_ENV=production. This is a weird issue where randomly, the SSR

When the hydratation happens, the style changes but is not the good one either and the change of state of parent doesn't do anything (no rerender when it should be)...

Do you have an idea where I can put a breakpoint to see why this is happening ? I am a little lost in the source of glamor...