huskies: merge 1048
This commit is contained in:
+12
-4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user