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

Dynamic Global styles are not created #1417

Closed
jroru opened this issue Nov 2, 2020 · 2 comments
Closed

Dynamic Global styles are not created #1417

jroru opened this issue Nov 2, 2020 · 2 comments

Comments

@jroru
Copy link

jroru commented Nov 2, 2020

Expected behavior:
I am able to create dynamic global styles with react-jss

Describe the bug:
I am able to create dynamic styles with react-jss
I am able to create global styles with react-jss
I am not able to create dynamic global styles with react-jss

Warning: [JSS] Unknown rule @global-d0

Codesandbox link:
https://codesandbox.io/s/react-jss-global-dynamic-tm1xc

Versions (please complete the following information):

  • jss: 10.4.0
  • Browser [e.g. chrome, safari]: Chrome
  • OS [e.g. Windows, macOS]: macOS
    Feel free to add any additional versions which you may think are relevant to the bug.
@sam-dassana
Copy link

sam-dassana commented Dec 2, 2020

I have the exact same issue. It works with jss as mentioned in this comment but not with react-jss.

Edit: got it working by wrapping it in a function.

@kof
Copy link
Member

kof commented Jan 27, 2021

seems like a duplicate of #1335

@kof kof closed this as completed Jan 27, 2021
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

3 participants