A search box can show results for the wrong query when an older request finishes last.
This AI-assisted, synthetic React work sample reproduces that race, applies a focused fix, and runs the same eight behavioral tests against both versions: six failures before, all eight...