fix(CQ-WEB-2): Fix missing dependency in FilterBar useEffect
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 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
76ac113d0c
commit
2c49371102
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user