Skip to content

Commit

Permalink
modify effect commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JKobrynski committed Aug 22, 2023
1 parent bf073ef commit edc4821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ImageView/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

/**
Expand Down

0 comments on commit edc4821

Please sign in to comment.