React Pattern

Request identity guard

Compare the identity of a completed request with the latest request before accepting its result.

Formal Syntax & Structure

react syntaxreact
completedId === latestId

Working Example

Example Snippetreact
if (completedId === latestId) accept(value);
React Reference