Skip to content
Snippets Groups Projects
Commit 3691200d authored by Maxime Jacquemin's avatar Maxime Jacquemin
Browse files

[ivette] Fix missing dependencies in React hooks

parent a8bf96fd
No related branches found
No related tags found
No related merge requests found
...@@ -952,7 +952,7 @@ function EvaTable(): JSX.Element { ...@@ -952,7 +952,7 @@ function EvaTable(): JSX.Element {
React.useEffect(() => { React.useEffect(() => {
if (csFct && fcts.isEmpty(csFct) && focus?.fct !== csFct) if (csFct && fcts.isEmpty(csFct) && focus?.fct !== csFct)
setCS('Summary'); setCS('Summary');
}); }, [ csFct, fcts, focus?.fct ] );
/* Updated the focused Probe when the selection changes. Also emit on the /* Updated the focused Probe when the selection changes. Also emit on the
* `locEvent` event. */ * `locEvent` event. */
...@@ -1049,7 +1049,7 @@ function EvaTable(): JSX.Element { ...@@ -1049,7 +1049,7 @@ function EvaTable(): JSX.Element {
}); });
return Promise.all(ps.map(FunctionSection)); return Promise.all(ps.map(FunctionSection));
}, },
[ cs, fcts, focus, tac, getCallsites, setLocPin, [ cs, fcts, focus, tac, getCallsites, setLocPin, csFct,
getCallstacks, getProbe, remove, select, locEvt ]); getCallstacks, getProbe, remove, select, locEvt ]);
const { result: functions } = Dome.usePromise(functionsPromise); const { result: functions } = Dome.usePromise(functionsPromise);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment