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

116
Visualizações
Problem with react-pdf library, when using usePDF hook

I use usePDF hook to download rendered pdf file, and it works correctly, but when i move to another page and come back to pdf page, button stops working. I check instance after returning from another page and blob file in it becomes null

const [instance, updateInstance] = usePDF({ document: ShowPdf() }) // ShowPdf is a function that returns <document>...pdf content</document>

How can I fix this problem? My library https://react-pdf.org/

This is my instance before moving to another page/component enter image description here

This is after returning from another page/component enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Instantiating component as JSX component worked for me -

const [instance, updateInstance] = usePDF({ document: <ShowPdf/> })
about 4 years ago · Juan Pablo Isaza Relatório
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