mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Temporarily disabled hooks lint failure for Tree useEffect
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user