Frontend Mission · JavaScript / React

Mission #001: The Stale Search Results Bug

Difficulty: Mid–SeniorEstimated time: 5 minutes

Skills

Async JavaScriptRace ConditionsProduction Debugging

Scenario

Users report that the search page usually works correctly, but when they type quickly, results from an older search sometimes replace the latest results.

Your task is to identify what is happening and choose the safest production solution.