Skip to content

Commit 61ff847

Browse files
author
chenwenhao
committed
fix: [supervisor] delay request update check
1 parent 6d38e08 commit 61ff847

File tree

1 file changed

+5
-1
lines changed
  • solutions/supervisor/www/src

1 file changed

+5
-1
lines changed

solutions/supervisor/www/src/App.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ const App = () => {
130130

131131
useEffect(() => {
132132
if (token && serviceStatus === ServiceStatus.RUNNING && !isDisableLayout) {
133-
checkNewVersion();
133+
const timer = setTimeout(() => {
134+
checkNewVersion();
135+
}, 30000);
136+
137+
return () => clearTimeout(timer);
134138
}
135139
}, [token, serviceStatus, isDisableLayout]);
136140

0 commit comments

Comments
 (0)