()
| 61 | const [timerId] = useState({ v: 0 }); |
| 62 | |
| 63 | const stopTimer = () => { |
| 64 | submenuCtx.off(); |
| 65 | if (timerId.v) { |
| 66 | clearTimeout(timerId.v); |
| 67 | timerId.v = 0; |
| 68 | } |
| 69 | }; |
| 70 | |
| 71 | const openMenu = (...args) => { |
| 72 | stopTimer(); |
no outgoing calls
no test coverage detected
searching dependent graphs…