@codecademy/gamut-styles 17.7.1-alpha.f9625d.0 → 17.7.1-alpha.febd1d.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,9 +29,9 @@ export const GamutProvider = _ref => {
29
29
  const shouldInsertGlobals = useGlobals && !hasGlobals;
30
30
 
31
31
  // Do not initialize a new cache if one has been provided as props
32
- const activeCache = useRef(cache ?? createEmotionCache(nonce ? {
32
+ const activeCache = useRef(shouldCreateCache && (cache ?? createEmotionCache(nonce ? {
33
33
  nonce
34
- } : {}));
34
+ } : {})));
35
35
  const contextValue = {
36
36
  hasGlobals: shouldInsertGlobals,
37
37
  hasCache: shouldCreateCache
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/gamut-styles",
3
3
  "description": "Styleguide & Component library for codecademy.com",
4
- "version": "17.7.1-alpha.f9625d.0",
4
+ "version": "17.7.1-alpha.febd1d.0",
5
5
  "author": "Jake Hiller <jake@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/variance": "0.23.0",
@@ -34,5 +34,5 @@
34
34
  "scripts": {
35
35
  "build": "nx build @codecademy/gamut-styles"
36
36
  },
37
- "gitHead": "d044220dd991d31eff5bff08b64a0c8d71fb657a"
37
+ "gitHead": "ca2b1ff553d762f3b5b34edeca06c6c3d826f0ee"
38
38
  }