Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to set pdfinstance to null #2753

Open
ishikachhabraa opened this issue May 15, 2024 · 0 comments
Open

unable to set pdfinstance to null #2753

ishikachhabraa opened this issue May 15, 2024 · 0 comments

Comments

@ishikachhabraa
Copy link

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: <></> });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant