cancelAnimationFrames method
void
cancelAnimationFrames()
inherited
Cancels all pending animation frames requested by requestAnimationFrame
.
Should be called in react.Component.componentWillUnmount
.
Implementation
void cancelAnimationFrames() {
_animationFrameIds.forEach(window.cancelAnimationFrame);
}