Skip to content

Commit

Permalink
Merge pull request Expensify#26365 from b4s36t4/fix/image-reload-on-s…
Browse files Browse the repository at this point in the history
…ession-change

fix image reload on session change
  • Loading branch information
yuwenmemon authored Sep 1, 2023
2 parents 7d9708a + bf4a775 commit 918eae2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 918eae2

Please sign in to comment.