Skip to content

Commit

Permalink
perf improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Dec 5, 2024
1 parent 9a34f0b commit 2be8d94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/boards/EvalListener.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function EngineListener({
}),
);
useEffect(() => {
if (!settings.enabled) return;
const unlisten = events.bestMovesPayload.listen(({ payload }) => {
const ev = payload.bestLines;
if (
Expand Down

0 comments on commit 2be8d94

Please sign in to comment.