Allow Context passthrough for dynamic header and footer
danvim opened this issue · 0 comments
danvim commented
Current implementation would render dynamic header and footer separately for each page so React Contexts would not penetrate into the dynamic content.
Idea
Instead of calling PdfRenderer.renderOnce
, what if we update the header and footer per page and get the contents (perhaps by using React Portals) for each page?