From 0f927576e489ef84b1147257506eaaa1cb1d31b8 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 8 Nov 2025 09:21:56 +0000 Subject: [PATCH] Guarantee loading is false - add catch-all timeout cgen-dd485462dbf14ff18179816ae9b214e8 --- client/contexts/AuthContext.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/contexts/AuthContext.tsx b/client/contexts/AuthContext.tsx index dff143eb..20acb173 100644 --- a/client/contexts/AuthContext.tsx +++ b/client/contexts/AuthContext.tsx @@ -873,8 +873,12 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ }); } - // Ensure loading is always false after sign-out completes + // CRITICAL: Guarantee loading is false so buttons appear + // Use synchronous call first, then timeout to catch any edge cases setLoading(false); + setTimeout(() => { + setLoading(false); + }, 100); }; const updateProfile = async (updates: Partial) => {