Coding / 4 min read
Stop stale fetch requests from replacing newer results
Use AbortController and a final result check to prevent an older request from overwriting the current view, with a reproducible race test.
Coding / 4 min read
Use AbortController and a final result check to prevent an older request from overwriting the current view, with a reproducible race test.
Programming / 3 min read
Replace conflicting checkout booleans with explicit access states, required payloads, and an exhaustive switch checked with TypeScript 5.9.3.
AI / 4 min read
Validate a model-proposed tool call against server-owned identity, allowed resources, and current ownership before reading a private note.
Architecture / 4 min read
Model paid orders, access grants, and email delivery independently so Stripe retries and provider failures do not turn into duplicate fulfillment.