We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9625d9 commit febd1d7Copy full SHA for febd1d7
packages/gamut-styles/src/GamutProvider.tsx
@@ -54,7 +54,7 @@ export const GamutProvider: React.FC<GamutProviderProps> = ({
54
55
// Do not initialize a new cache if one has been provided as props
56
const activeCache = useRef<EmotionCache | false>(
57
- cache ?? createEmotionCache(nonce ? { nonce } : {})
+ shouldCreateCache && (cache ?? createEmotionCache(nonce ? { nonce } : {}))
58
);
59
60
const contextValue = {
0 commit comments