From 6c05c63997c82b0cfa169f477786065f738a7f3e Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 14 May 2026 15:20:54 +0000 Subject: [PATCH] huskies: merge 1048 --- frontend/src/App.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 8abbdab9..1b6c8961 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -31,6 +31,7 @@ function App() { }, []); React.useEffect(() => { + if (isGateway === null || isGateway) return; let active = true; function fetchOAuthStatus() { api @@ -46,9 +47,14 @@ function App() { active = false; window.clearInterval(intervalId); }; - }, []); + }, [isGateway]); React.useEffect(() => { + if (isGateway === null) return; + if (isGateway) { + setIsCheckingProject(false); + return; + } api .getCurrentProject() .then((path) => { @@ -60,7 +66,7 @@ function App() { .finally(() => { setIsCheckingProject(false); }); - }, []); + }, [isGateway]); React.useEffect(() => { if (projectPath) { @@ -74,13 +80,15 @@ function App() { }, [projectPath]); React.useEffect(() => { + if (isGateway === null || isGateway) return; api .getKnownProjects() .then((projects) => setKnownProjects(projects)) .catch((error) => console.error(error)); - }, []); + }, [isGateway]); React.useEffect(() => { + if (isGateway === null || isGateway) return; let active = true; api .getHomeDirectory() @@ -102,7 +110,7 @@ function App() { return () => { active = false; }; - }, []); + }, [isGateway]); const { matchList,