You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but the retrying is only logged once, and the ref is always null:
Is this possible and I'm just dumb and can't figure it out? Could this be a built in prop perhaps?
<AvatarPrimitive.Image// Retry loading the image 3 times with 100ms intervalsretryTimes={3}retryInterval={100}/>
Examples in other libraries
N/A
Who does this impact? Who is this for?
The usecase is for when updating a profile picture, sometimes it takes a short while for the image to have the correct metadata on the server to be rendered properly by the browser. This causes the image to error immediately after being uploaded. I'd like to just retry loading the image a couple times (like retry it 3 times in 100ms intervals).
Additional context
The text was updated successfully, but these errors were encountered:
Feature request
Overview
I'd like to retry loading the image on error. I tried something using the
onLoadingStatusChanged
but didn't manage to get it working.For context, this is my current hacky playground:
but the retrying is only logged once, and the ref is always null:
Is this possible and I'm just dumb and can't figure it out? Could this be a built in prop perhaps?
Examples in other libraries
N/A
Who does this impact? Who is this for?
The usecase is for when updating a profile picture, sometimes it takes a short while for the image to have the correct metadata on the server to be rendered properly by the browser. This causes the image to error immediately after being uploaded. I'd like to just retry loading the image a couple times (like retry it 3 times in 100ms intervals).
Additional context
The text was updated successfully, but these errors were encountered: