Commit

9a2d50f

Fixed a subtle race condition in a search filter component today where a slow earlier API response was overwriting a faster subsequent one. Passing an AbortController signal into the fetch call inside useEffect cleanup took three lines of code and completely stopped out-of-order state updates.

commit 9a2d50f