Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

282
Visualizações
How to render multiple Base64 images in the table

I have to render base64 images for avatar due to privacy issues, all promises for thumbnails are being resolved correctly but base64 images don't render properly from the browser memory cache.

enter image description here

Strangely, it does show up all base64 after re-render (when I click the sort icon, it doesn't trigger re-fetch).

And one more item appears from the network tab. I don't have any idea why.

Could you help me to render all images in base64 format properly?

Here's code snippet.

uniqueReferrals.forEach(({ gpReferralUuid, state }, idx) => {
        if (gpReferralUuid && state !== "hqSent") {
          healthQuestionnaireReviewService
            .getPatientThumbanils(gpReferralUuid)
            .then((res) => {
              const { hasPhotos } = res;

              if (hasPhotos) {
                const frontThumbnail = res.photos.frontThumbnail;
                uData[idx].avatar = frontThumbnail;
                setReferralSummary(uData);
              }
            })
            .catch((error) => {});
        }
      });

<tr>
<td>
<Avatar
    className={classes.avatar}
    src={row.avatar}
    alt="Thumbnail"
/>

enter image description here

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda