mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
update broken flag synchronously on src change
This commit is contained in:
parent
f20d04d5ee
commit
091d9273e5
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ const Image = ({ className, src, alt, fallbackSrc, renderFallback }) => {
|
|||
setBroken(true);
|
||||
}
|
||||
}, [src]);
|
||||
React.useEffect(() => {
|
||||
React.useLayoutEffect(() => {
|
||||
setBroken(false);
|
||||
}, [src]);
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue