Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit bec76c0

Browse files
committed
Added missing dependency array to useEffect
1 parent d6bcc4e commit bec76c0

File tree

1 file changed

+3
-1
lines changed
  • webapp_frontend/src/components

1 file changed

+3
-1
lines changed

webapp_frontend/src/components/App.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ function App(): ReactElement {
1010
Promise.resolve(setBackendPort())
1111
.then((backendPort:string) => {
1212
console.log("[APP] Backend-Port = " + backendPort)
13+
// eslint-disable-next-line react-hooks/exhaustive-deps
1314
callInitialBackendRequests()
1415
})
1516
.catch((error:any) => {
1617
alert("Error: Problems with backend.cfg - " + error)
1718
})
18-
});
19+
},[]);
1920

2021
function callInitialBackendRequests():void {
2122
updateVariables()
2223
}
24+
2325
function updateVariables(): void {
2426
Promise.all([callBackendHealth()])
2527
.then(([backendHealthData]) => {

0 commit comments

Comments
 (0)