From d99f5d7ac861e42af16534648c647386fe226243 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 22 Oct 2020 15:46:22 -0700 Subject: [PATCH] oops, fix missing react hook dep! --- src/app/components/OutfitMovieLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/OutfitMovieLayer.js b/src/app/components/OutfitMovieLayer.js index c262932..b12a4dd 100644 --- a/src/app/components/OutfitMovieLayer.js +++ b/src/app/components/OutfitMovieLayer.js @@ -86,7 +86,7 @@ function OutfitMovieLayer({ } return () => stage.removeChild(movieClip); - }, [stage, movieClip]); + }, [stage, movieClip, onLoad]); // 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