There's a TODO comment in the function of the hook suggesting a potential future enhancement to remove the iFrame from the DOM when the portal is closed. This issue is to track the implementation of that enhancement.
Context: The enhancement was discussed in the context of a pull request review. It's considered a good practice to ensure such enhancements are tracked and not forgotten.
PR URL: #13
Comment URL: #13 (comment)
@bangarang requested the creation of this issue to ensure the enhancement is tracked and considered for future implementation.