Fix channel-selector thumbnail not updating #6607

Merged
infinite-persistence merged 1 commit from thumb into master 2021-07-21 10:39:48 +02:00

View file

@ -89,7 +89,9 @@ function OptimizedImage(props: Props) {
} else {
setOptimizedSrc(src);
}
}, []); // eslint-disable-line react-hooks/exhaustive-deps
// We only want to run this on (1) initial mount and (2) 'src' change. Nothing else.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [src]);
if (!src) {
return null;