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
update function takes the new document and renders it:
constPdfView=()=>{const[pdf,update]=usePdf();useEffect(()=>{update(<PDFDocument/>);},[]);if(pdf.loading)returnnull;// use your PDF herereturn<>{pdf.url}</>;};