From d9f131e1633a078e2dd0f3345ca5578374c04b63 Mon Sep 17 00:00:00 2001 From: thomasrosen Date: Sat, 23 Jan 2021 18:52:14 +0100 Subject: [PATCH] removed foreground frome callback dependecy --- src/Editor.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Editor.js b/src/Editor.js index 45b27d8..1928965 100644 --- a/src/Editor.js +++ b/src/Editor.js @@ -83,10 +83,7 @@ function Editor({ onChange, background, backgroundRatio, foreground }) { setPhotoWidth(new_photoWidth) setPhotoHeight(new_photoHeight) } - }, [ - backgroundRatio, - foreground, - ]) + }, [backgroundRatio]) useEffect(() => { const {