We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 233aa88 commit 67fd427Copy full SHA for 67fd427
posts/en/req_config.md
@@ -174,7 +174,10 @@ These are the available config options for making requests. Only the `url` is re
174
}
175
},
176
177
- // `cancelToken` specifies a cancel token that can be used to cancel the request
+ // `signal` and instance of AbortController can be used to cancel the request
178
+ signal: new AbortController().signal,
179
+
180
+ // (Deprecatred) `cancelToken` specifies a cancel token that can also be used to cancel the request
181
// (see Cancellation section below for details)
182
cancelToken: new CancelToken(function (cancel) {
183
}),
0 commit comments