MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / removeTimer

Function removeTimer

guang-components/src/Message/useTimer.tsx:21–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 };
20
21 const removeTimer = () => {
22 if (timer.current) {
23 clearTimeout(timer.current);
24 timer.current = null;
25 }
26 };
27
28 useEffect(() => {
29 startTimer();

Callers 3

startTimerFunction · 0.70
useTimerFunction · 0.70
onMouseEnterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected