[bug]: Error "useTheme must be used within a ThemeProvider" doesn't throw at all. #5002
Open
2 tasks done
Labels
bug
Something isn't working
Describe the bug
If we call
useTheme
out side of theThemeProvider
, it should throw an error saying "useTheme must be used within a ThemeProvider".Affected component/components
Root of the application
How to reproduce
useTheme()
outside of theThemeProvider
Expected result: Is should throw an error.
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: