(pendingFunc: () => void, wait: number)
| 185 | }; |
| 186 | |
| 187 | const startTimer = (pendingFunc: () => void, wait: number) => { |
| 188 | if (useRAF) cancelAnimationFrame(timerId.current); |
| 189 | timerId.current = useRAF |
| 190 | ? requestAnimationFrame(pendingFunc) |
| 191 | : setTimeout(pendingFunc, wait); |
| 192 | }; |
| 193 | |
| 194 | const shouldInvoke = (time: number) => { |
| 195 | if (!mounted.current) return false; |
no outgoing calls
no test coverage detected
searching dependent graphs…