You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My custom CacheProvider is not consistently "grabbing" styles imported from a library, resulting in injected <style> tags not having the expected data-emotion attribute and nonce attribute.
Clone the repository: git clone https://github.com/jmdarling/emotion-library-caching-issue
Install dependencies: npm install
Build the library: npm run build
Start the development server: npm run dev
Open your browser and navigate to http://localhost:5173
Expected behavior:
My custom CacheProvider will properly "grab" styles imported from a library and I will see the correct data-emotion attribute and nonce attribute on injected <style> tags.
Environment information:
react version: 18.2.0
@emotion/react version: 11.11.4
The text was updated successfully, but these errors were encountered:
Current behavior:
My custom CacheProvider is not consistently "grabbing" styles imported from a library, resulting in injected
<style>
tags not having the expecteddata-emotion
attribute andnonce
attribute.To reproduce:
Reproduction repository: https://github.com/jmdarling/emotion-library-caching-issue
git clone https://github.com/jmdarling/emotion-library-caching-issue
npm install
npm run build
npm run dev
http://localhost:5173
Expected behavior:
My custom
CacheProvider
will properly "grab" styles imported from a library and I will see the correctdata-emotion
attribute andnonce
attribute on injected<style>
tags.Environment information:
react
version:18.2.0
@emotion/react
version:11.11.4
The text was updated successfully, but these errors were encountered: