-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
PDFViewer does not render until reloaded #3090
Comments
It looks like your PDFViewer component isn't rendering properly on the first load, requiring multiple reloads. Since you already have a condition ensuring data availability before rendering, the issue might be related to:
Final Steps to Debug:
|
1 similar comment
It looks like your PDFViewer component isn't rendering properly on the first load, requiring multiple reloads. Since you already have a condition ensuring data availability before rendering, the issue might be related to:
Final Steps to Debug:
|
Thank you very much for the detailed reply so basically what I did was the loading state that we get from the PDFDownloadLink component i stored it in a local state and used it as a loading indicator for the pdf as well which solved the issue |
Describe the bug
I have used the to display the PDF in the web app but on the first render the PDFViewer is not shown.
I have to reload sometimes even multiple times
I have a condition that checks if the data from the API has arrived before rendering the DOM so I dont think its because of that.
If there are any loading states that I am missing do let me know
Below is the code snippet
Screenshots
First Render =>
After Reloading =>
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: