React 19+ · Function
cacheSignal
cacheSignal gives React Server Components an AbortSignal for the current cache lifetime. Use it to stop in-flight work when React no longer needs the result.
Last updated
- Since
- React 19.2
Syntax
cacheSignal()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
cachefetchAbortSignalReact Server Components