MCPcopy
hub / github.com/formatjs/formatjs / clearUpdateTimer

Function clearUpdateTimer

packages/react-intl/components/relative.tsx:125–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124 React.useEffect(() => {
125 function clearUpdateTimer() {
126 clearTimeout(updateTimer.current)
127 }
128 clearUpdateTimer()
129 // If there's no interval and we cannot increment this unit, do nothing
130 if (!updateIntervalInSeconds || !canIncrement(unit)) {

Callers 1

FormattedRelativeTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected