
has to be remounted to ask once more;
+ // setting an unchanged src would leave it broken (5.0.0-pre.1
+ // feedback). A second failure ends on the category icon.
fetchPhoto(cacheKey, photoId, place.lat ?? undefined, place.lng ?? undefined, place.name,
- entry => { setPhotoSrc(entry.thumbDataUrl || entry.photoUrl) }
+ entry => {
+ setPhotoSrc(entry.thumbDataUrl || entry.photoUrl)
+ setLoadAttempt(n => n + 1)
+ }
)
} else {
setPhotoSrc(null)