This warning was appended to every PR. While the warningn typically makes sense, in this case we intentionally don't want to rerun if `desiredState` changes.
@@ -102,6 +102,8 @@ function AgentControlBar() {
} else if (curTaskState === AgentTaskState.RUNNING) {
setDesiredState(AgentTaskState.RUNNING);
}
+ // We only want to run this effect when curTaskState changes
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [curTaskState]);
return (