Update StabilityProvider.tsx
This commit is contained in:
@@ -23,6 +23,7 @@ export function StabilityProvider({ children }: { children: React.ReactNode }) {
|
|||||||
window.addEventListener('offline', () => setIsOffline(true));
|
window.addEventListener('offline', () => setIsOffline(true));
|
||||||
}, [setIsOffline]);
|
}, [setIsOffline]);
|
||||||
|
|
||||||
|
// server check refetching
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const interval = setInterval(() => {
|
const interval = setInterval(() => {
|
||||||
if (!state.loading) state.retry();
|
if (!state.loading) state.retry();
|
||||||
|
|||||||
Reference in New Issue
Block a user