Async UI Races

Remove race conditions from client code that talks to a server: classify the race first - out-of-order responses, double submit, optimistic updates diverging from the server, state set after unmount - then fix each with its own tool: request keys or AbortController so the latest wins, a disabled control plus an idempotency key for submits, rollback reconciled with the server for optimistic updates, cancellation in cleanup; prove it with a test that releases responses in reverse order, not one that relies on timing. Use when "search shows old results", "double click created two orders", "the like count flickers back" or "typing fast shows the wrong suggestions". Not for flaky browser test suites (e2e-testing), server idempotency contracts (api-design), server-side cache staleness (application-caching), or queue consumers (event-driven-reliability).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit b4bb8d6020

Frequently asked questions

npx get-skill add greenblacked/async-ui-races