Hi everyone,
I’m currently working on a proof-of-concept where we are embedding a Pega workflow within a external portal using Constellation UI and the DX API. For the most part, the integration is working smoothly, but I’ve hit a roadblock with how custom iframe-embedded components behave during modal dialog refreshes.
Whenever a user submits a local action inside our embedded view, the parent modal refreshes, but any custom script-heavy elements inside the embedded layout fail to reload their initial states. The page doesn’t crash, but the UI thread seems to block execution, leaving the iframe content blank until a full manual browser refresh is triggered.
I’ve been testing several external scripting sandboxes and runtime managers to see if we can force these frame scripts to reload asynchronously without locking the DOM. While exploring how other frameworks handle lightweight script execution on mobile and web front-ends, I came across the setup to see if their background thread management could point me in the right direction. They offer a free download of their scripting tool which handles complex execution routines quite smoothly, and I’ve been analyzing their method of keeping the UI responsive under heavy loads.
Has anyone dealt with this kind of frame-rendering freeze when using Constellation DX components? Are there specific event listeners or refresh actions I should hook into inside Pega to ensure the embedded scripts are cleanly re-initialized after a modal submit?
I’d love to hear how you guys manage background script lifecycles in custom DX views. Thanks in advance!