chore; add lint
This commit is contained in:
@@ -163,9 +163,16 @@ function SignalFlowMatrix({
|
||||
const commitTimers = useRef<Map<string, ReturnType<typeof setTimeout>>>(new Map());
|
||||
|
||||
useEffect(() => {
|
||||
const timers = commitTimers.current;
|
||||
const tooltipTimer = hideTooltipTimer.current;
|
||||
|
||||
return () => {
|
||||
if (hideTooltipTimer.current) clearTimeout(hideTooltipTimer.current);
|
||||
commitTimers.current.forEach(clearTimeout);
|
||||
if (tooltipTimer) {
|
||||
clearTimeout(tooltipTimer);
|
||||
}
|
||||
|
||||
timers.forEach((timer) => clearTimeout(timer));
|
||||
timers.clear();
|
||||
};
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user