MCPcopy
hub / github.com/shiyi-0x7f/o-lib / stopPolling

Function stopPolling

src/pages/PrescriberPage.tsx:78–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }, [loading]);
77
78 const stopPolling = () => {
79 if (pollTimer.current) {
80 window.clearInterval(pollTimer.current);
81 pollTimer.current = null;
82 }
83 };
84 useEffect(() => () => stopPolling(), []);
85
86 // ── 寻书 ──

Callers 3

PrescriberPageFunction · 0.85
openLoginFunction · 0.85
pollLoginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected