useDimensions: don't return null

renovate/major-react-monorepo
Alex Gleason 2023-01-05 16:56:05 -06:00
rodzic 934f354f9c
commit 273266d9ac
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -25,7 +25,7 @@ const useDimensions = (): UseDimensionsResult => {
);
useEffect((): any => {
if (!element) return null;
if (!element) return;
observer.observe(element);
return () => {