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

disableStyledSystemCache is not working with @emotion/react #1836

Open
uragecz opened this issue Feb 22, 2021 · 1 comment
Open

disableStyledSystemCache is not working with @emotion/react #1836

uragecz opened this issue Feb 22, 2021 · 1 comment
Labels

Comments

@uragecz
Copy link

uragecz commented Feb 22, 2021

Describe the bug
At first, theme type for emotion doesn't allow disableStyledSystemCache prop. Secondly, even if i overtype theme as any, and i send this property, when it comes to check var isCacheDisabled = props.theme && props.theme.disableStyledSystemCache;, this value is undefined, so it's like emotion filters incoming theme properties, and keeps only the ones it knows.

To Reproduce
Try to add this property to theme for emotion ThemeProvider, and isCacheDisabled won't be true

@uragecz uragecz added the bug label Feb 22, 2021
@arunvenugopal11
Copy link

@uragecz I'm also facing this issue, Could you tell me if you have any workaround for this? Thanks!

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

No branches or pull requests

2 participants