fix: initial animation frame

This commit is contained in:
cha0s 2021-07-06 19:11:17 -05:00
parent ce43e281d1
commit 779ade1058

View File

@ -68,7 +68,7 @@ const Stage = ({
renderer.render(renderable); renderer.render(renderable);
handle = requestAnimationFrame(tick); handle = requestAnimationFrame(tick);
}; };
tick(0); handle = requestAnimationFrame(tick);
return () => { return () => {
if (handle) { if (handle) {
cancelAnimationFrame(handle); cancelAnimationFrame(handle);