mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
style: remove warning about useEffect (#1232)
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.
This commit is contained in:
parent
3c85ece23e
commit
6340cd9aed
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user