Is there a way to generate a list of pdf instances? usePDF doesn't quite work #1449
Unanswered
BStephenBB
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an array of data that I build my pdfs from, and I would like to great an array of pdf instances.
This code mostly works:
BUT it breaks the rule of hooks and I get the error:
error React Hook "usePDF" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function
. Is there a way to do this and avoid that error?Beta Was this translation helpful? Give feedback.
All reactions