Skip to content

Show previously rendered PDF instead of showing 'Loading PDF...' #1055

Answered by wojtekmaj
contentkonker asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,
A very similar problem already has a solution: show previous <Page /> when the next one is being rendered. I believe the solution you're looking for will be largely the same, only applied to <Document />.

https://codesandbox.io/s/react-pdf-prevent-flash-se4r7s

Since you didn't provide CodeSandbox so I had no working code to work on, I went ahead and implemented this in react-pdf/renderer's REPL itself here: diegomura/react-pdf-site#91

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by wojtekmaj
Comment options

You must be logged in to vote
1 reply
@nicholsss
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
4 participants
Converted from issue

This discussion was converted from issue #1054 on September 26, 2022 10:49.