Skip to content

Commit febd1d7

Browse files
committed
fix logic
1 parent f9625d9 commit febd1d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gamut-styles/src/GamutProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const GamutProvider: React.FC<GamutProviderProps> = ({
5454

5555
// Do not initialize a new cache if one has been provided as props
5656
const activeCache = useRef<EmotionCache | false>(
57-
cache ?? createEmotionCache(nonce ? { nonce } : {})
57+
shouldCreateCache && (cache ?? createEmotionCache(nonce ? { nonce } : {}))
5858
);
5959

6060
const contextValue = {

0 commit comments

Comments
 (0)