Replies: 1 comment 3 replies
-
You are mixing This would be the proper way of doing this: https://stackblitz.com/edit/vitejs-vite-sindvv?file=src%2FApp.tsx&terminal=dev |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current behavior:
I'm trying to use a custom cache for emotion 10 so that I can set a classname prefix. I have a federated UI where multiple instances of emotion 10 are used. I created a cache and set the CacheProvider value prop to it. The html produced is not showing that the produced classnames are using the key value defined when creating the cache object.
To reproduce:
I reproduced the issue on playcode.io. Its the only one that has version 10
https://playcode.io/1789873
class="css-1443u2l"
Expected behavior:
When I inspect the html the css classnames use the default 'css' prefix. I was expecting classnames to be prefixed with the key prop defined in the cache,
andy
.Environment information:
react
version: 18.0.0@emotion/cache
version: 10.0.29@emotion/core
version: 10.3.1emotion
10.0.27Beta Was this translation helpful? Give feedback.
All reactions