-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Additional style on reload, css prop, styled-components #5988
Comments
The babel plugin configuration in .babelrc is missing the |
@ztanner @timneutkens issue still didn't solved. I have already tried this before submit issue. Please check again. Error still exists.
|
Sorry, you're right - I misread the docs, as SSR is actually enabled by default. I'll keep looking at this. |
Hey @timneutkens, can you please reopen issue, maybe somebody will help with error |
Having the same issue. Would this apply to NextJS?
|
@kusold it dosn't help, u can use emotion as workaround, same func without issue |
Bug report
Describe the bug
When i change styles in css prop and reload page i get error "Warning: Prop
className
did not match.". In head style section i see two same styles (old and new). Problem only on client side.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
Console without error about className
Screenshots
On screenshot we can see 3 classes in style tag, but in code we have only 2.
System information
Additional context
I also updated packages to latest versions.
Git repo with bug: https://github.com/dmitweb/with-styled-components-app-bug
The text was updated successfully, but these errors were encountered: