I am mapping over some items coming from a DB. When clicking the download link and viewing the pdf generated, some of the items repeat when they shouldn't. I have checked the data over and over and don't see any repeats in the data. Using UUID for the list item keys so they are all unique. When i use the pdf viewer, there is no issue with repeating. This issue comes and goes. The issue does not seem to happen when running locally. It only happens in production. Using Vercel for hosting.
@react-pdf/renderer - 3.4.4
Next - 14.2.3
React - 18.3.1
can you share your mapping approach in more details, i have faced this issue once, had temporarily fixed by memoizing the component while generating pdf
I am mapping over some items coming from a DB. When clicking the download link and viewing the pdf generated, some of the items repeat when they shouldn't. I have checked the data over and over and don't see any repeats in the data. Using UUID for the list item keys so they are all unique. When i use the pdf viewer, there is no issue with repeating. This issue comes and goes. The issue does not seem to happen when running locally. It only happens in production. Using Vercel for hosting.
@react-pdf/renderer - 3.4.4 Next - 14.2.3 React - 18.3.1