()
| 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 |
no outgoing calls
no test coverage detected