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 e74a616 commit 8aab6b1Copy full SHA for 8aab6b1
src/Common/Api.ts
@@ -204,6 +204,9 @@ function fetchInTime<T = object>(
204
options.abortControllerRef.current = new AbortController()
205
}
206
207
+ // Note: This is not catered in case abortControllerRef is passed since
208
+ // the API is rejected with abort signal from line 202
209
+ // FIXME: Remove once signal is removed
210
reject({
211
code: 408,
212
errors: [{ code: 408, internalMessage: 'Request cancelled', userMessage: 'Request Cancelled' }],
@@ -224,6 +227,7 @@ function fetchInTime<T = object>(
224
227
if (err instanceof ServerErrors) {
225
228
throw err
226
229
} else {
230
+ // FIXME: Can be removed once signal is removed
231
throw new ServerErrors({
232
233
errors: [
0 commit comments