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;
|
||||
|
||||
if (!imageRequest.fromCache) {
|
||||
updateImageState(false);
|
||||
}
|
||||
|
||||
setImageSourceUrl(image);
|
||||
} catch (e) {
|
||||
const wasAborted =
|
||||
|
||||
Reference in New Issue
Block a user