fix(CQ-WEB-2): Fix missing dependency in FilterBar useEffect
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

The debounced search useEffect accessed `filters` and `onFilterChange`
without including them in the dependency array. Fixed by:
- Using useRef for onFilterChange to maintain a stable reference
- Using functional state update (setFilters callback) to access
  previous filters without needing it as a dependency

This prevents stale closures while avoiding infinite re-render loops
that would occur if these values were added directly to the dep array.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jason Woltje
2026-02-06 13:11:49 -06:00
parent 76ac113d0c
commit 2c49371102
2 changed files with 25 additions and 10 deletions

View File

@@ -38,6 +38,12 @@ The orchestrator **cold-starts** with just a review report location and minimal
**If you find yourself about to edit source code, STOP.**
Spawn a worker instead. No exceptions. No "quick fixes."
**Worker Limits:**
- Maximum **2 parallel workers** at any time
- Wait for at least one worker to complete before spawning more
- This optimizes token usage and reduces context pressure
---
## Bootstrap Templates