Temporarily disabled hooks lint failure for Tree useEffect
Brian Vaughn committed
Apr 13, 2019 at 15:49 UTC
00f6466ec1a7f7dbcc2aef570d55e6ace113ebcf
1 file changed
+2
src/devtools/views/Components/Tree.js
+2
@@ -336,6 +336,8 @@ function InnerElementType({ style, ...rest }) {
336
// This improves the user experience when scrolling between wide and narrow rows.
337
const divRef = useRef<HTMLDivElement | null>(null);
338
const [minWidth, setMinWidth] = useState(null);
339
+ // TODO This is a valid warning, but we're ignoring it for the time being.
340
+ // eslint-disable-next-line react-hooks/exhaustive-deps
341
useEffect(() => {
342
if (divRef.current !== null) {
343
const measuredWidth = divRef.current.offsetWidth;