ЕК
https://codesandbox.io/s/confident-herschel-oxwty?file=/src/App.js
Size: a a a
ЕК
D
CZ
IN
CZ
IN
ЕК
A
const animate = (time: number): void => {
graphService.handleRAF(time);
requestRef.current = requestAnimationFrame(animate);
};
useEffect(() => {
if (graphState === 1) {
requestRef.current = requestAnimationFrame(animate);
}
return (): void => cancelAnimationFrame(requestRef.current as number);
}, [graphState]);
AA
@
IN
ЕК
А
IN
IN
AA
IN
AA
@
IN