Replies: 1 comment
-
Ah, found that there is an issue already. Sorry. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now the API is made such that the output PDF is always generated whenever the download link is rendered (Same with the
usePDF
hook):This is quite a waste of resources, because actually rendering is only necessary when the button is clicked. It would be nice if the
document
prop accepted a function called lazily.I found this code, but shouldn't it be the default way of rendering supported by the library?
Beta Was this translation helpful? Give feedback.
All reactions