fix: always return something from effect

This commit is contained in:
James 2019-06-17 11:07:43 +01:00
parent d18d2d8683
commit 33554262ef

View File

@ -24,6 +24,7 @@ const useScrolling = (ref: RefObject<HTMLElement>): boolean => {
}
};
}
return () => {};
}, [ref.current]);
return scrolling;