From edc4821567cdbfd531a73cf57257c7a6112a040c Mon Sep 17 00:00:00 2001 From: Julian Kobrynski Date: Tue, 22 Aug 2023 16:28:32 +0200 Subject: [PATCH] modify effect commit --- src/components/ImageView/index.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ImageView/index.native.js b/src/components/ImageView/index.native.js index 6ddf53a9e400..b365f507a4fc 100644 --- a/src/components/ImageView/index.native.js +++ b/src/components/ImageView/index.native.js @@ -111,7 +111,7 @@ function ImageView({isAuthTokenRequired, url, onScaleChanged, onPress, style}) { useEffect(() => { imageLoadingStart(); - // eslint-disable-next-line react-hooks/exhaustive-deps -- adding imageLoadingStart to deps array causes the component to be stuck on loading, wrapping imageLoadingStart with useCallback doesn't help. This issue occurs on both platforms + // eslint-disable-next-line react-hooks/exhaustive-deps -- this effect only needs to run when the url changes }, [url]); /**