Fix link preview race condition

This commit is contained in:
Evan Hahn 2021-06-02 19:19:40 -05:00 committed by GitHub
parent 66d9bb8418
commit 6642652bdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 77 additions and 2 deletions

View file

@ -597,5 +597,9 @@ export async function fetchLinkPreviewImage(
return null;
}
if (abortSignal.aborted) {
return null;
}
return { data, contentType };
}