Skip to content

halfstack-dev/react-pdf-memleak-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors