Skip to content

Commit

Permalink
one extra thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Dec 4, 2024
1 parent 4042de8 commit 5909580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/theming.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type WithTheme<P, T> = P extends { theme: infer Theme }
? P & { theme: Exclude<Theme, undefined> }
: P & { theme: T }

export const ThemeContext = /* #__PURE__ */ React.createContext<Theme>({})
export const ThemeContext = /* #__PURE__ */ React.createContext({} as Theme)
if (isDevelopment) {
ThemeContext.displayName = 'EmotionThemeContext'
}
Expand Down

0 comments on commit 5909580

Please sign in to comment.