mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
Check every 2s
This commit is contained in:
1 parent
3000c3bbe3
commit
a96ba276bc
1 file changed
+2
-2
@@ -40,8 +40,8 @@ const ProjectBuildingState: React.FC<ProjectBuildingState> = () => {
|
||||
}
|
||||
|
||||
React.useEffect(() => {
|
||||
// check server status every 1s
|
||||
checkServerInterval.current = window.setInterval(checkServer, 10000)
|
||||
// check server status every 2s
|
||||
checkServerInterval.current = window.setInterval(checkServer, 2000)
|
||||
return () => {
|
||||
clearInterval(checkServerInterval.current)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user