axios-cancelable
Utility for cancellation of requests when using axios
Table of Contents
About
Personalized and actively maintained fork of axios-cancel
Install
This project uses node and npm.
$ npm install axios-cancelable$ # OR $ yarn add axios-cancelable
Usage
;; ; ... // Single request cancellationconst requestId = 'my_sample_request';const promise = axios ; axios;// aborts the HTTP request and logs `request cancelled`
Contribute
- Fork it and create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
MIT