Tree item abort (#6757)
* adding abortSignal back to composition load * suppress AbortError console.errors from couch, delay requests for test to trigger abort --------- Co-authored-by: John Hill <john.c.hill@nasa.gov> Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
@@ -242,11 +242,16 @@ export default class ObjectAPI {
|
||||
return domainObject;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.warn(`Failed to retrieve ${keystring}:`, error);
|
||||
delete this.cache[keystring];
|
||||
const result = this.applyGetInterceptors(identifier);
|
||||
|
||||
return result;
|
||||
// suppress abort errors
|
||||
if (error.name === 'AbortError') {
|
||||
return;
|
||||
}
|
||||
|
||||
console.warn(`Failed to retrieve ${keystring}:`, error);
|
||||
|
||||
return this.applyGetInterceptors(identifier);
|
||||
});
|
||||
|
||||
this.cache[keystring] = objectPromise;
|
||||
|
||||
Reference in New Issue
Block a user