Temporarily disabled hooks lint failure for Tree useEffect

This commit is contained in:
Brian Vaughn
2019-04-13 15:49:06 -07:00
parent 97f089bdfe
commit 00f6466ec1
+2
View File
@@ -336,6 +336,8 @@ function InnerElementType({ style, ...rest }) {
// This improves the user experience when scrolling between wide and narrow rows.
const divRef = useRef<HTMLDivElement | null>(null);
const [minWidth, setMinWidth] = useState(null);
// TODO This is a valid warning, but we're ignoring it for the time being.
// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(() => {
if (divRef.current !== null) {
const measuredWidth = divRef.current.offsetWidth;