The README says:
Transient Errors: A load may fail because it simply can't be loaded (a permanent issue) or it may fail because of a transient issue such as a down database or network issue. For transient errors, clear the cache:
and gives an code snippet on how to deal with this situation:
userLoader.load(1).catch(error => {
if (/* determine if error is transient */) {
userLoader.clear(1);
}
throw error;
});
It is recommended to do clear(key) manually. But after i read the code, it seems that DataLoader already take care of this. Am i missing something or the doc need to update?