Type quickly to trigger race conditions. The API has random latency (200-1500ms).
Start typing to search...
Why this works:
event.requestId === ctx.currentRequestIdWithout state machines, you'd need to manually track request IDs, compare them in every response handler, and remember to do this consistently. With a state machine, the guard handles it automatically - stale responses simply don't trigger transitions.