Merge pull request #275 from openziti/linter-suppression

added two linter suppressions on useEffect deps (#264)
This commit is contained in:
Michael Quigley 2023-03-22 10:46:37 -04:00 committed by GitHub
commit 505b6e65e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,12 +17,14 @@ const Visualizer = (props) => {
console.log("resetting selection", props.selection);
props.setSelection(props.defaultSelection);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.overview]);
markSelected(networkGraph, props.selection);
useEffect(() => {
markSelected(networkGraph, props.selection);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.selection]);
// fgRef to access force graph controls from this component