Skip to content
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

When NODE_ENV=production hydratation is broken #382

Open
julienfroidefond opened this issue May 25, 2018 · 0 comments
Open

When NODE_ENV=production hydratation is broken #382

julienfroidefond opened this issue May 25, 2018 · 0 comments

Comments

@julienfroidefond
Copy link

julienfroidefond commented May 25, 2018

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

  • doesn't render the style or sometimes,
  • render a style which isn't the right one (and it is not coherent with the code ...)

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant