Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
startTimer
Function · 0.70
useTimer
Function · 0.70
onMouseEnter
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected