-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDFDownloadLink not working using next js #2744
Comments
import React, { useState } from 'react'; const App = () => { const handleFormSubmit = (data) => { return ( Form to PDF{formData && ( <PDFDownloadLink document={} fileName="formData.pdf" > {({ blob, url, loading, error }) => loading ? 'Generating PDF...' : 'Download PDF' } )} ); }; export default App; |
<PDFDownloadLink
|
I ran into this same problem and what I found weird is that it works without |
<PDFDownloadLink
document={<RptInvoice {...reportData} />}
fileName={orderView.invoice_no + ".pdf"}
className="hover:cursor-pointer hover:underline text-blue-500"
>
{({ blob, url, loading, error }) =>
loading
? "Loading document..."
: orderView.invoice_no
}
The code above cant working on my code, why?
The text was updated successfully, but these errors were encountered: