MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / visibilityChanged

Function visibilityChanged

graph-ui/src/system/useSystemPoll.ts:55–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54 };
55 const visibilityChanged = () => {
56 invalidate();
57 setReading((previous) => ({ ...previous, loading: false }));
58 if (visible() && !paused) void poll();
59 };
60 refreshRef.current = () => { void poll(); };
61 document.addEventListener('visibilitychange', visibilityChanged);
62 if (visible() && !paused) void poll();

Callers

nothing calls this directly

Calls 4

invalidateFunction · 0.85
setReadingFunction · 0.85
visibleFunction · 0.70
pollFunction · 0.70

Tested by

no test coverage detected