You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. Yes, we have no way of knowing what data your component may or may not be loading, so we only wait 500ms before opening the window. There is talk in #140 about providing react-to-print the ability to wait until an action is done before trying to print. If you have any ideas for that thread they would be greatly appreciated.
Also, side note: the way you are using the useRef hook is incorrect. It should just be:
Hello. Please note that the newest version has support for using promises within onBeforePrint. You should be able to use that to achieve what you need reliably. Please let us know if you run into any issues, thank you.
Hi, I have the follow context:
I want to print a report with a header, but this header needs just show on the print and not in the page on a web. So, I did this:
css
And use my
PrintHeader
component inside thewrapper
from my report.Our problem is:
PrintHeader
does not show,PrintHeader
component load in the print.The
PrintHeader
load dynamic data, could this be a problem with react to print?The text was updated successfully, but these errors were encountered: