Reset img error state when paging stories
This commit is contained in:
parent
896b36c301
commit
97454b6bac
1 changed files with 4 additions and 0 deletions
|
@ -76,6 +76,10 @@ export function StoryImage({
|
|||
}
|
||||
}, [isPaused]);
|
||||
|
||||
useEffect(() => {
|
||||
setHasImgError(false);
|
||||
}, [attachment?.url, attachment?.thumbnail?.url]);
|
||||
|
||||
if (!attachment) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue