diff --git a/src/components/util/SpinnerImage.tsx b/src/components/util/SpinnerImage.tsx index 65e70754..406b8982 100644 --- a/src/components/util/SpinnerImage.tsx +++ b/src/components/util/SpinnerImage.tsx @@ -49,6 +49,7 @@ export const SpinnerImage = forwardRef((props: IProps, imgRef: ForwardedRef { let tmpImageSourceUrl: string; const imageRequest = requestManager.requestImage(src); + let cacheTimeout: NodeJS.Timeout; const fetchImage = async () => { try { @@ -60,7 +61,12 @@ export const SpinnerImage = forwardRef((props: IProps, imgRef: ForwardedRef { + cacheTimeout = setTimeout(resolve, 50); + }), + ]); const isImageCached = !!checkCache; if (isImageCached) { @@ -82,6 +88,7 @@ export const SpinnerImage = forwardRef((props: IProps, imgRef: ForwardedRef