Demos / Data fetching
Out-of-order responses
Search as you type sends a request on every keystroke, and they don’t come back in the order they were sent. Without cancellation, a slow response to an old query lands last and overwrites the right results. With cancellation, each keystroke drops the request before it.
Requests
0 shown out of date
Each keystroke sends one.
Every reply replaces the results, so whichever arrives last wins, even if it’s for a search you’ve already typed past.