Fix calling SpinnerImage load, error callbacks
This commit is contained in:
@@ -122,10 +122,7 @@ export const SpinnerImage = ({ ref, ...props }: SpinnerImageProps) => {
|
|||||||
|
|
||||||
const image = await imageRequest.response;
|
const image = await imageRequest.response;
|
||||||
|
|
||||||
if (!imageRequest.fromCache) {
|
|
||||||
updateImageState(false);
|
updateImageState(false);
|
||||||
}
|
|
||||||
|
|
||||||
setImageSourceUrl(image);
|
setImageSourceUrl(image);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const wasAborted =
|
const wasAborted =
|
||||||
|
|||||||
Reference in New Issue
Block a user