-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
afterResponse
hook doesn't work with the new expanded retry
option
#167
Comments
The issue here is that the @sindresorhus |
Some brainstorming and technical details here... PR #180 fixed the failing test. It did so by filtering the options passed to hooks such that hooks only receive fetch/unknown options but no Ky options. In other words, This works well enough and perhaps we should keep it that way. I've gone back and forth multiple times on whether I think hooks should receive Ky options. This issue, and the test being discussed here, made me think, "Yeah, hooks should receive all Ky options." So I went to go implement that and I changed the Ways forward from here:
As for how they compare, pros/cons:
|
Introduced by d4ddb7a.
This test now fails:
ky/test/hooks.js
Line 249 in a50948a
// @whitecrownclown @lambdalisue
The text was updated successfully, but these errors were encountered: