-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: request cancellation #369
Conversation
4417391
to
b1403b5
Compare
Codecov Report
@@ Coverage Diff @@
## master #369 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 11 11
Lines 346 360 +14
Branches 56 60 +4
=========================================
+ Hits 346 360 +14
Continue to review full report at Codecov.
|
I get this
in the tests. Is there no way to avoid this? (Tests are fairly long) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not fan of enhanced promise type
:
Why not using the native fetch abort mechanism?
the fetch() promise rejects with an "AbortError" DOMException.
https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
using standards may be a better way than enhanced promise type
0e27464
to
4f96063
Compare
@adriengibrat We should handle both Axios and Fetch behaviour so we need to keep something flexible to ensure a compatibility between both. May in the fututre we will directly integrate a custom hook for each ones. |
4f96063
to
c696638
Compare
c696638
to
b597284
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Possibility to cancel a Promise with an enhanced promise type