Skip to content
Permalink
969b304193
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (10 sloc) 426 Bytes
import createCache from "@emotion/cache";
export const defaultCache = createEmotionCache();
export default function createEmotionCache(nonce?: string) {
// 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", nonce })
: // @ts-expect-error
createCache({ key: "cha", nonce });
}