feat(AU-2006): Show loading state when translating unit block (#1389)

This commit is contained in:
Rodrigo Martin
2024-05-17 13:48:23 -03:00
committed by GitHub
parent e656f5445c
commit df361236d0

View File

@@ -105,6 +105,11 @@ const useIFrameBehavior = ({
};
};
React.useEffect(() => {
setIframeHeight(0);
setHasLoaded(false);
}, [iframeUrl]);
return {
iframeHeight,
handleIFrameLoad,