diff --git a/src/components/layout/ClientLayout.tsx b/src/components/layout/ClientLayout.tsx index 2ac6de3..9d2cfc3 100644 --- a/src/components/layout/ClientLayout.tsx +++ b/src/components/layout/ClientLayout.tsx @@ -33,16 +33,6 @@ export default function ClientLayout({ children, initialLibraries = [], initialF const backgroundType = preferences.background.type; const komgaLibraries = preferences.background.komgaLibraries; - // Debug: log renders - useEffect(() => { - console.log('🎨 [ClientLayout] Render:', { - pathname, - backgroundType, - hasLibraries: !!komgaLibraries?.length, - preferencesKeys: Object.keys(preferences) - }); - }); - // Stabiliser libraryIds - ne change que si le contenu change vraiment const libraryIdsString = useMemo(() => { const newIds = komgaLibraries?.join(",") || ""; diff --git a/src/contexts/PreferencesContext.tsx b/src/contexts/PreferencesContext.tsx index a53f4cf..a1ad0bf 100644 --- a/src/contexts/PreferencesContext.tsx +++ b/src/contexts/PreferencesContext.tsx @@ -29,11 +29,6 @@ export function PreferencesProvider({ const [isLoading, setIsLoading] = useState(false); const [hasLoadedPrefs, setHasLoadedPrefs] = useState(!!initialPreferences); - // Debug: log state changes - useEffect(() => { - console.log('⚙️ [PreferencesContext] Update:', { status, hasLoadedPrefs, isLoading }); - }, [status, hasLoadedPrefs, isLoading]); - const fetchPreferences = async () => { try { const response = await fetch("/api/preferences");