huskies: merge 1048

This commit is contained in:
dave
2026-05-14 15:20:54 +00:00
parent ee20e54d40
commit 6c05c63997
+12 -4
View File
@@ -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,