Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

114
Vistas
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 Respuestas
Responde la pregunta

0

Instantiating component as JSX component worked for me -

const [instance, updateInstance] = usePDF({ document: <ShowPdf/> })
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda