From e4cb3fd10ea992eead86d5448e6dbcd91519c83a Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Wed, 18 Feb 2026 03:35:25 -0600 Subject: [PATCH] Increase theme sync delay to 2 seconds Co-authored-by: shakespeare.diy --- src/hooks/useTheme.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useTheme.ts b/src/hooks/useTheme.ts index 5d89e837..f0a833ed 100644 --- a/src/hooks/useTheme.ts +++ b/src/hooks/useTheme.ts @@ -21,13 +21,13 @@ export function useTheme(): { theme: Theme; setTheme: (theme: Theme) => void } { theme, })); - // Sync to encrypted storage after a delay to let theme apply first + // Sync to encrypted storage after 2 seconds to let theme fully apply if (user) { setTimeout(() => { updateSettings.mutateAsync({ theme }).catch((error) => { console.error('Failed to sync theme to encrypted storage:', error); }); - }, 500); + }, 2000); } } }