Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove cache stupidity
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent c1c2f36 commit 9c0b048
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions 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" });
}

0 comments on commit 9c0b048

Please sign in to comment.