Skip to content

Commit 8aab6b1

Browse files
committed
doc: add comments
1 parent e74a616 commit 8aab6b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Common/Api.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ function fetchInTime<T = object>(
204204
options.abortControllerRef.current = new AbortController()
205205
}
206206

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
207210
reject({
208211
code: 408,
209212
errors: [{ code: 408, internalMessage: 'Request cancelled', userMessage: 'Request Cancelled' }],
@@ -224,6 +227,7 @@ function fetchInTime<T = object>(
224227
if (err instanceof ServerErrors) {
225228
throw err
226229
} else {
230+
// FIXME: Can be removed once signal is removed
227231
throw new ServerErrors({
228232
code: 408,
229233
errors: [

0 commit comments

Comments
 (0)