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

themed useCreateStyles creates className mismatch when hydrating in StrictMode #1338

Open
eps1lon opened this issue Apr 26, 2020 · 0 comments
Labels
bug It went crazy and killed everyone. help wanted

Comments

@eps1lon
Copy link
Member

eps1lon commented Apr 26, 2020

Expected behavior:
className matches during hydration

Describe the bug:
The counter in the className is off by one

Codesandbox link:
https://codesandbox.io/s/createusestyles-classname-mismatch-zdojq?file=/src/App.js

The useLayoutEffect warnings are false positives since we SSR in the browser to showcase the issue better.
Versions (please complete the following information):

  • jss: 10.1.1
  • Browser [e.g. chrome, safari]: Chrome 81
  • OS [e.g. Windows, macOS]: ubuntu 18.04
  • react: 16.13.1
@kof kof added the bug It went crazy and killed everyone. label Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It went crazy and killed everyone. help wanted
Projects
None yet
Development

No branches or pull requests

2 participants