Closed ItsJonQ closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/itsjonq/g2/9w5rDTVhEGpVEQkdyCXnxCYP5UQa
✅ Preview: https://g2-git-try-context-fix-interpolated-classnam-f978f7.vercel.app
Going to try an alpha 0.0.160
release to test in Gutenberg
This update consolidates how the interpolated className is created, in an attempt to resolve https://github.com/WordPress/gutenberg/pull/29084#issuecomment-788372734
Changes:
getInterpolatedClassName
util is created and exported from@wp-g2/create-styles
getInterpolatedClassName
ensures the@emotion/hash
function is only called if the argument is valid@wp-g2/context
adds@wp-g2/create-styles
as a dependency (was previously missing)@emotion/hash
go through the newgetInterpolatedClassName
util