rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

RFC: Unified cancellation via AbortSignal across React async APIs

Open RichLewis007 opened this issue 4 months ago • 0 comments

React now spans client and server with transitions, Suspense/use, and server actions, but there is no unified way to cancel stale async work. This RFC proposes an opt-in, web-standard cancellation model using AbortSignal that flows consistently through these APIs, with signal.reason for diagnostics and full backwards compatibility.

The goal is to stop irrelevant work predictably, reduce wasted I/O and compute, and align React with platform semantics. The proposal includes complete examples, signal composition helpers, and integration patterns for library and framework authors.

This RFC is ready for review. I welcome design feedback and real-world use cases from the React community.

RichLewis007 avatar Oct 23 '25 21:10 RichLewis007