We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4042de8 commit 5909580Copy full SHA for 5909580
packages/react/src/theming.tsx
@@ -20,7 +20,7 @@ export type WithTheme<P, T> = P extends { theme: infer Theme }
20
? P & { theme: Exclude<Theme, undefined> }
21
: P & { theme: T }
22
23
-export const ThemeContext = /* #__PURE__ */ React.createContext<Theme>({})
+export const ThemeContext = /* #__PURE__ */ React.createContext({} as Theme)
24
if (isDevelopment) {
25
ThemeContext.displayName = 'EmotionThemeContext'
26
}
0 commit comments