oops, fix missing hook deps

This commit is contained in:
Emi Matchu 2020-09-24 06:43:46 -07:00
parent ce402c23d7
commit 05f7b3fcc7

View file

@ -60,7 +60,7 @@ function OutfitCanvas({
// NOTE: We don't bother firing an update, because we trust the ticker // NOTE: We don't bother firing an update, because we trust the ticker
// to do it on the next frame. // to do it on the next frame.
}, },
[stage] [stage, onChangeHasAnimations]
); );
const removeChild = React.useCallback( const removeChild = React.useCallback(
@ -78,7 +78,7 @@ function OutfitCanvas({
// to do it on the next frame. (And, I don't understand why, but // to do it on the next frame. (And, I don't understand why, but
// updating here actually paused remaining movies! So, don't!) // updating here actually paused remaining movies! So, don't!)
}, },
[stage] [stage, onChangeHasAnimations]
); );
const addResizeListener = React.useCallback((handler) => { const addResizeListener = React.useCallback((handler) => {