From 9c0b048bfefa472865b882b0b1c7c9bb99e6584a Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:49:50 -0400 Subject: [PATCH] Remove cache stupidity --- app/createEmotionCache.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/createEmotionCache.ts b/app/createEmotionCache.ts index c3281be..1a943c0 100644 --- a/app/createEmotionCache.ts +++ b/app/createEmotionCache.ts @@ -1,10 +1,5 @@ import createCache from "@emotion/cache"; export default function createEmotionCache() { - // The browser throws when calling .default, but the server throws if we don't call .default - // Of course! - return typeof document === "undefined" - ? createCache.default({ key: "cha" }) - : // @ts-expect-error - createCache({ key: "cha" }); + return createCache({ key: "cha" }); }