server check healthy

This commit is contained in:
talksik
2022-05-22 04:22:59 -05:00
parent 21d3ff881b
commit be2505f298
@@ -24,10 +24,12 @@ export function StabilityProvider({ children }: { children: React.ReactNode }) {
}, [setIsOffline]);
useEffect(() => {
setInterval(() => {
state.retry();
const interval = setInterval(() => {
if (!state.loading) state.retry();
}, 5000);
}, [state]);
return () => clearInterval(interval);
}, [state.loading]);
if (isOffline)
return (