fix: inflight queryonce cache never revalidated

feat/type-attributes
Tomáš Mládek 2023-01-24 19:18:11 +01:00
parent c3fc9610eb
commit 144a426c3a
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ export async function queryOnce(query: string): Promise<UpListing> {
keepalive: true,
})
.then(async (response) => {
inFlightRequests[query] = null;
resolve(new UpListing(await response.json()));
})
.catch((err) => reject(err));