Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed
What causes it and how to fix it:
- pdf.js: "Cannot use the same canvas during multiple render() operations" on resizeA React effect that re-renders a PDF page on every resize starts a second render() before the first finishes; cancel the running task in cleanup and chain renders so they never overlapCause and fix →