Description
The Emotion CSS bindings in src/bindings/Emotion.res were incomplete and have been updated to include the full API for better usability and future-proofing.
Changes Made
- Fixed
keyframes binding (was incorrectly pointing to "css", now "keyframes").
- Added missing core APIs:
cache, hydrate, getRegisteredStyles, flush.
- Added server-side API:
extractCritical for SSR support.
Files Changed
Why This Matters
This ensures comprehensive bindings for the Emotion CSS library, allowing for advanced features like hydration, caching, and SSR if needed in future development. The project currently uses only css and injectGlobal, but these additions provide completeness without breaking changes.
Testing
- Verified existing usage (
css, injectGlobal) still works.
- No runtime errors introduced.
Related
- Closes any future needs for Emotion API expansions.
- Part of ongoing binding improvements for JS interop.
Labels: chore, enhancement, bindings
Description
The Emotion CSS bindings in
src/bindings/Emotion.reswere incomplete and have been updated to include the full API for better usability and future-proofing.Changes Made
keyframesbinding (was incorrectly pointing to "css", now "keyframes").cache,hydrate,getRegisteredStyles,flush.extractCriticalfor SSR support.Files Changed
src/bindings/Emotion.resWhy This Matters
This ensures comprehensive bindings for the Emotion CSS library, allowing for advanced features like hydration, caching, and SSR if needed in future development. The project currently uses only
cssandinjectGlobal, but these additions provide completeness without breaking changes.Testing
css,injectGlobal) still works.Related
Labels:
chore,enhancement,bindings