fix useEffect hook
This commit is contained in:
parent
03e64ea6f5
commit
478dd8c9ad
@ -149,7 +149,7 @@ const IndexPage = ({
|
||||
return () => {
|
||||
document.removeEventListener("keydown", keyListener);
|
||||
};
|
||||
}, [imageIndex, images.length]);
|
||||
}, [imageIndex, images.length, image, shuffleImage]);
|
||||
|
||||
const vibrant = getVibrant(image);
|
||||
const ar = getAspectRatio(image);
|
||||
|
Loading…
x
Reference in New Issue
Block a user