KamoCRM

Defer set Totalpages până după bucla dim PDF pentru a preveni saturarea lucrătorului PDF.js

Fixkamo-internal
Shipped
12 aprilie 2026 la 15:50 UTC
Author
kamo
Commit
cb85347

Pe un PDF de 50 de pagini, asteptare set TotalPages înainte de getPage () dimension loop mounts Toate cele 50 de componente ThumbnailCanvas imediat. Fiecare scade înapoi la PDF.js (server Unghiile degetului mare nu sunt generate pentru șabloane), rânduind 50 de sarcini concurente în comun PDF.js web worker Stand pe termen nelimitat, păstrarea de încărcare = adevărat și arată "Loading PDF..." pentru totdeauna. Fix: mutare set Totalpages/onPdfLoaded to after the dim loop completes so fulls redă doar o dată panza PDF principală este complet gata. De asemenea, repara designStore.loadDesign not reseting isloading when a 200 OK response returns with no designData (null/nedefinit), which would leave the page blocked on "Şablon ascuns..." pentru şabloane noi.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing