Generating PDF with data pulled asynchronously #2742
-
Hello all, I am building a logging/reporting application using Next.js 14, ./src directory, and app router. The PDF reports I am generating are supposed to show logged data I have in a database. To grab my data, I am using server actions. When attempting to render on a client-side page, I believe my PDF is rendering before my app can run useEffect to grab the data. However, after the data is collected, the PDF does not re-render. I have tried to manage this by using the concept of a "isComplete" variable, but this does not seem to help. Does anyone have any suggestions on how to get around this? I have attached snippits of my code below. page.jsx
Resume.jsx
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My bad, everyone. After some extra debugging, I realized there was a different issue giving me grief. I resolved that, and everything is working as expected. |
Beta Was this translation helpful? Give feedback.
My bad, everyone. After some extra debugging, I realized there was a different issue giving me grief. I resolved that, and everything is working as expected.