Remove cache stupidity
This commit is contained in:
parent
c1c2f36307
commit
9c0b048bfe
@ -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" });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user