diff --git a/src/useSize.tsx b/src/useSize.tsx index 4079dbf4..6a50b044 100644 --- a/src/useSize.tsx +++ b/src/useSize.tsx @@ -47,7 +47,7 @@ const useSize = ( useEffect(() => { const iframe: HTMLIFrameElement | null = ref.current; - if(!iframe) { + if (!iframe) { // iframe will be undefined if component is already unmounted return; }