refactor: remove debug logging from ClientLayout and PreferencesContext to clean up code and improve performance

This commit is contained in:
Julien Froidefond
2025-10-24 17:25:18 +02:00
parent 931185f0f0
commit e32a7bdb2f
2 changed files with 0 additions and 15 deletions

View File

@@ -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");