I have multiple components using usePdf to generate pdf on user click. But once some is already ready (download link is displayed) and user clicks on another - all instances regenerate.
I have tried BlobProvider, usePdf, ... all options and found await pdf(<DocPdfDocument {...props} /> is the only way how to generate multiple documents.
I have multiple components using usePdf to generate pdf on user click. But once some is already ready (download link is displayed) and user clicks on another - all instances regenerate.
Example:
The first component added to the page - doc1 is generated. 2nd component added to the page - doc2 is generated and doc1 is also regenerated.