PDFViewer not automatically rendering content #2423
emmanuel-londono
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I have the
<PDFViewer/>
re-render whenever I may changes to<Document/>
?I'm currently using zustand as a state manager but I haven't been able to make the iframe re-render after a change to the codebase after clicking the rerender button. I'll also opt for using a no-button approach for the iframe rendering automatically.
Would I use the usePDF hook for this? I've looked at the docs but haven't been able to implement the update() function properly.
Any guidance would be appreciated, even answers with native react state management instead of Zustand!
React Version 18.2.0
Beta Was this translation helpful? Give feedback.
All reactions