From bf4a775de6dcba7339cccf99d27cc42bcfdfe4da Mon Sep 17 00:00:00 2001 From: Mahesh Vagicherla Date: Fri, 1 Sep 2023 18:55:53 +0530 Subject: [PATCH] update comment --- src/components/Image/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Image/index.js b/src/components/Image/index.js index 4b44bd30363d..7434c16c6491 100644 --- a/src/components/Image/index.js +++ b/src/components/Image/index.js @@ -22,7 +22,9 @@ function Image(props) { return {uri: `${propsSource.uri}?encryptedAuthToken=${encodeURIComponent(authToken)}`}; } return propsSource; - }, [propsSource, isAuthTokenRequired, session]); + // The session prop is not required, as it causes the image to reload whenever the session changes. For more information, please refer to issue #26034. + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [propsSource, isAuthTokenRequired]); /** * The natural image dimensions are retrieved using the updated source