MCPcopy Create free account
hub / github.com/dailydotdev/apps / clearInterval

Function clearInterval

packages/shared/src/hooks/useTimedAnimation.ts:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 );
36
37 const clearInterval = () => {
38 if (!interval?.current) {
39 return;
40 }
41
42 window.clearInterval(interval.current);
43 interval.current = undefined;
44 };
45
46 const endAnimation = useCallback(() => {
47 // Guard on hasStartedAnimation (not interval.current): hover-pause clears

Callers 12

clearPopupCheckFunction · 0.85
RelativeTimeFunction · 0.85
BriefCardInternalFunction · 0.85
IntroQuestButtonFunction · 0.85
stopHeartbeatMethod · 0.85
ReachHeroSectionFunction · 0.85
CausesStackFunction · 0.85
useTimedAnimationFunction · 0.85
useStreakRingStateFunction · 0.85
startLandingBlinkFunction · 0.85
AiFluencyQuizPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected