#canvas 3 articles
- A Promise wrapped around img.onload can hang forever — try/catch won't save yougotchas / spfxonload/onerror are not guaranteed to fire; try/catch guards rejection, not a Promise that never settles
- pdf.js: "Cannot use the same canvas during multiple render() operations" on resizegotchas / spfxA 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 overlap
- Putting an Image web part on a modern page via REST — the control JSON that renders, with a linkgotchas / rest-apiOut-of-the-box Image web part (d1d91016-…) in CanvasContent1: file ids in properties + customMetadata, the URL in serverProcessedContent.imageSources, the click target in links.linkUrl; works in a full-width section…