Summary
The search bar uses a debounce hook to avoid firing a query on every keystroke. Unit tests should confirm the hook returns the raw value immediately after each keystroke, the debounced value only after the delay has elapsed, and that rapid input resets the timer.
Scope
- Test that the debounced value is not updated immediately after input changes
- Test that the debounced value updates to the latest input after the delay elapses
- Test that rapid input (faster than the delay) only produces one debounced output
- Test a delay of 0ms returns the debounced value immediately
- Assert the timer is cleared on unmount (no state update after unmount)
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The search bar uses a debounce hook to avoid firing a query on every keystroke. Unit tests should confirm the hook returns the raw value immediately after each keystroke, the debounced value only after the delay has elapsed, and that rapid input resets the timer.
Scope
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram