Fix react-pdf race condition

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-10-16 12:58:11 +02:00
parent a15df8292e
commit 5951b464cf
2 changed files with 9 additions and 1 deletions

View File

@@ -110,6 +110,7 @@ export function PDFPreview({ src, name }: { src: string; name?: string }) {
>
<Document
file={src}
key={src + "document"}
onLoadSuccess={onDocumentLoadSuccess}
className="flex flex-col gap-4 py-10"
ref={documentRef}