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.
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.