From 00f6466ec1a7f7dbcc2aef570d55e6ace113ebcf Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Sat, 13 Apr 2019 15:49:06 -0700 Subject: [PATCH] Temporarily disabled hooks lint failure for Tree useEffect --- src/devtools/views/Components/Tree.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/devtools/views/Components/Tree.js b/src/devtools/views/Components/Tree.js index 7d4a1b2dae..bbfba9a76c 100644 --- a/src/devtools/views/Components/Tree.js +++ b/src/devtools/views/Components/Tree.js @@ -336,6 +336,8 @@ function InnerElementType({ style, ...rest }) { // This improves the user experience when scrolling between wide and narrow rows. const divRef = useRef(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;