Chapter 15 · Example 5 · Data fetching and race conditions

Compare result url via ref

When results carry no id, a ref holds the latest url and the callback drops any response whose url does not match the current request.

Loading live editor…