diff --git a/README.md b/README.md
index d854e96..d9b836e 100644
--- a/README.md
+++ b/README.md
@@ -70,8 +70,8 @@ const Component = () => {
const { switcher, themes, currentTheme, status } = useThemeSwitcher();
const [isDarkMode, setIsDarkMode] = React.useState(false);
- if (status === 'loading') {
- return
Loading styles...
;
+ if (status !== 'loaded') {
+ return null;
}
const toggleDarkMode = () => {
diff --git a/example/index.tsx b/example/index.tsx
index 47d942f..2256c15 100644
--- a/example/index.tsx
+++ b/example/index.tsx
@@ -9,8 +9,8 @@ const Component = () => {
const { switcher, themes, currentTheme, status } = useThemeSwitcher();
const [isDarkMode, setIsDarkMode] = React.useState(true);
- if (status === 'loading') {
- return Loading styles...
;
+ if (status !== 'loaded') {
+ return null;
}
const toggleDarkMode = checked => {