MCPcopy Create free account
hub / github.com/rilldata/rill / recoverWhenVisible

Function recoverWhenVisible

web-admin/src/components/errors/admin-network-errors.ts:60–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 void recoverFromAdminNetworkError(queryClient);
59 };
60 const recoverWhenVisible = () => {
61 if (document.visibilityState !== "hidden") recover();
62 };
63
64 window.addEventListener("online", recover);
65 window.addEventListener("focus", recoverWhenVisible);

Callers

nothing calls this directly

Calls 1

recoverFunction · 0.85

Tested by

no test coverage detected