Answer the question
In order to leave comments, you need to log in
How to wait for a hook to execute and then execute another synchronized function?
I have a hook that updates the state of a pdf document
const [instance, update] = usePDF({ document: ShowPdf() })
useEffect(() => {
downloadPdf()
}, [instance])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question