Skip to content

v3.12.0: Abortable fetch using AbortController

Compare
Choose a tag to compare
@ghengeveld ghengeveld released this 02 Jan 20:14
· 637 commits to master since this release

React Async now automatically instantiates an AbortController with each promise. The controller is passed to the promiseFn and/or deferFn. Its signal property can be passed as an option to fetch. Whenever a promise is canceled, the signal is aborted, canceling the underlying HTTP request.