MCPcopy Index your code
hub / github.com/ReactTooltip/react-tooltip / clearTimeoutRef

Function clearTimeoutRef

src/utils/clear-timeout-ref.ts:1–7  ·  view source on GitHub ↗
(ref: React.RefObject<NodeJS.Timeout | null>)

Source from the content-addressed store, hash-verified

1const clearTimeoutRef = (ref: React.RefObject<NodeJS.Timeout | null>) => {
2 if (ref.current) {
3 clearTimeout(ref.current)
4
5 ref.current = null
6 }
7}
8
9export default clearTimeoutRef

Callers 4

handleScrollResizeFunction · 0.90
TooltipFunction · 0.90
utils.spec.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…