oops, fix missing react hook dep!

This commit is contained in:
Emi Matchu 2020-10-22 15:46:22 -07:00
parent 456a098df9
commit d99f5d7ac8

View file

@ -86,7 +86,7 @@ function OutfitMovieLayer({
} }
return () => stage.removeChild(movieClip); return () => stage.removeChild(movieClip);
}, [stage, movieClip]); }, [stage, movieClip, onLoad]);
// This effect updates the `stage` according to the `library`'s framerate, // This effect updates the `stage` according to the `library`'s framerate,
// but only if there's actual animation to do - i.e., there's more than one // but only if there's actual animation to do - i.e., there's more than one