-
Notifications
You must be signed in to change notification settings - Fork 2
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
PDF not working after first render #8
Comments
Sorry about that loading issue with react routing. This was an issue that was introduced after I did some code refactoring to match the example reactjs code provided by Adobe. Unfortunately the example code while simpler to understand didn't handle edge cases regarding more complex usages of react's rendering and views. I've fixed the issue as it's just a simple need to trigger a nested re-renderfor the adobe pdf custom react component whenever its parent component updates (for instance updates meaning after it had already mounted and is simply viewed again within react's page routing). There shouldn't be any issues but if there is any more please let me know. I really do want to resolve issues concerning loading failures especially when using react specific features, like in this case, failure to re-render the pdf component when reloading the page view react routing. Thanks for the excellent catch and well documented examples @blur94. It was a pretty easy to get right to the root cause! I'll close this ticket in a week just in case any issues pop up with this fix. |
@ZipingL Hi Liu, still looks like this issue is open. I'm also not able to reload the pdf viewer after refreshing the screen (v 12.0.2). I appreciate you looking into this. Thanks. |
@blur94 Were you able to resolve this? Thanks |
This issue was resolved a while ago, my current site and my continuous deployment pipeline shows this package works fine.
Do you have any console logs you can show me, you maybe facing a separate issue?
|
On the first load, the PDF displays, but on subsequent loads of the page without refreshing the browser, the PDF won't load.
Here is the link to the component for this implementation on GitHub: https://github.com/blur94/metrix/blob/main/src/views/orders/embedPDF.tsx
Here is the link to the live demo: https://metrix-nine.vercel.app/orders
The text was updated successfully, but these errors were encountered: