mirror of
https://github.com/openziti/zrok.git
synced 2024-11-07 16:54:23 +01:00
added two linter suppressions on useEffect deps
This commit is contained in:
parent
7d1b6192f1
commit
20a0ecacde
@ -17,12 +17,14 @@ const Visualizer = (props) => {
|
|||||||
console.log("resetting selection", props.selection);
|
console.log("resetting selection", props.selection);
|
||||||
props.setSelection(props.defaultSelection);
|
props.setSelection(props.defaultSelection);
|
||||||
}
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [props.overview]);
|
}, [props.overview]);
|
||||||
|
|
||||||
markSelected(networkGraph, props.selection);
|
markSelected(networkGraph, props.selection);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
markSelected(networkGraph, props.selection);
|
markSelected(networkGraph, props.selection);
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [props.selection]);
|
}, [props.selection]);
|
||||||
|
|
||||||
// fgRef to access force graph controls from this component
|
// fgRef to access force graph controls from this component
|
||||||
|
Loading…
Reference in New Issue
Block a user