react-frame-component icon indicating copy to clipboard operation
react-frame-component copied to clipboard

contentDidMount is triggered at a different time than onLoad.

Open Mrcxt opened this issue 11 months ago • 1 comments

I have a situation where I need to dynamically calculate the height of an iframe after it has loaded. However, I found in the source code that contentDidMount is triggered before the srcDoc has finished loading, resulting in incorrect height calculation because the css and js have not finished loading at that time.

Mrcxt avatar Feb 27 '24 09:02 Mrcxt

Can you create a test case showing the problem

ryanseddon avatar Feb 28 '24 04:02 ryanseddon