Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 541 Bytes

File metadata and controls

28 lines (19 loc) · 541 Bytes

@react-pdf memory leak example

Adding a break on the text element at:

src/pdf-generator/src/pdf-template.tsx:49

causes an infinite loop when rendering the PDF document with @react-pdf/renderer. This even causes a memory leak crash when the pdf is large enough.

Installation

This project requires Node.js v22.21.0 (specified in .nvmrc) and pnpm.

# Install dependencies
pnpm install

Running

# Run the example
pnpm start

This will execute the script that demonstrates the memory leak issue.