[CustomImage] cleanup 함수 추가

This commit is contained in:
hyunwoo93.cha
2024-02-22 20:01:59 +09:00
parent 90eb6be783
commit 572a0e5dfa

View File

@@ -33,6 +33,10 @@ export default memo(function CustomImage({
setImageLoaded(false);
setImgSrc(src);
showImageJob.current.stop();
return () => {
showImageJob.current.stop();
};
}, [src]);
const _onLoad = useCallback(() => {