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(() => { React.useEffect(() => {
if (isGateway === null || isGateway) return;
let active = true; let active = true;
function fetchOAuthStatus() { function fetchOAuthStatus() {
api api
@@ -46,9 +47,14 @@ function App() {
active = false; active = false;
window.clearInterval(intervalId); window.clearInterval(intervalId);
}; };
}, []); }, [isGateway]);
React.useEffect(() => { React.useEffect(() => {
if (isGateway === null) return;
if (isGateway) {
setIsCheckingProject(false);
return;
}
api api
.getCurrentProject() .getCurrentProject()
.then((path) => { .then((path) => {
@@ -60,7 +66,7 @@ function App() {
.finally(() => { .finally(() => {
setIsCheckingProject(false); setIsCheckingProject(false);
}); });
}, []); }, [isGateway]);
React.useEffect(() => { React.useEffect(() => {
if (projectPath) { if (projectPath) {
@@ -74,13 +80,15 @@ function App() {
}, [projectPath]); }, [projectPath]);
React.useEffect(() => { React.useEffect(() => {
if (isGateway === null || isGateway) return;
api api
.getKnownProjects() .getKnownProjects()
.then((projects) => setKnownProjects(projects)) .then((projects) => setKnownProjects(projects))
.catch((error) => console.error(error)); .catch((error) => console.error(error));
}, []); }, [isGateway]);
React.useEffect(() => { React.useEffect(() => {
if (isGateway === null || isGateway) return;
let active = true; let active = true;
api api
.getHomeDirectory() .getHomeDirectory()
@@ -102,7 +110,7 @@ function App() {
return () => { return () => {
active = false; active = false;
}; };
}, []); }, [isGateway]);
const { const {
matchList, matchList,