All interview questions
How do you prevent a stale network response from overwriting new data?
AdvancedAnswer
Cancel or ignore the earlier request during cleanup, and tie the response to the latest query. Otherwise a slow previous request may arrive last.