You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically i have different projects on one page and each has a corresponding download button, when i click on download pdf first time it renders correctly but when i click on some other project to download it , it renders the previous pdf first and doesn't download the corresponding pdf. So for this I wanted to clear the pdfinstance state. how should i do it?
const [pdfInstance, setPdfInstance] = usePDF({ document: <></> });
The text was updated successfully, but these errors were encountered:
Basically i have different projects on one page and each has a corresponding download button, when i click on download pdf first time it renders correctly but when i click on some other project to download it , it renders the previous pdf first and doesn't download the corresponding pdf. So for this I wanted to clear the pdfinstance state. how should i do it?
const [pdfInstance, setPdfInstance] = usePDF({ document: <></> });
The text was updated successfully, but these errors were encountered: