server check healthy
This commit is contained in:
@@ -24,10 +24,12 @@ export function StabilityProvider({ children }: { children: React.ReactNode }) {
|
|||||||
}, [setIsOffline]);
|
}, [setIsOffline]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setInterval(() => {
|
const interval = setInterval(() => {
|
||||||
state.retry();
|
if (!state.loading) state.retry();
|
||||||
}, 5000);
|
}, 5000);
|
||||||
}, [state]);
|
|
||||||
|
return () => clearInterval(interval);
|
||||||
|
}, [state.loading]);
|
||||||
|
|
||||||
if (isOffline)
|
if (isOffline)
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user