Skip to content

Commit 6a0e20b

Browse files
committed
Update implicit tags expiration after await expireTags
1 parent 79c4c5e commit 6a0e20b

File tree

1 file changed

+3
-3
lines changed
  • packages/next/src/server/lib/incremental-cache

1 file changed

+3
-3
lines changed

packages/next/src/server/lib/incremental-cache/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,13 @@ export class IncrementalCache implements IncrementalCacheType {
277277
}
278278
}
279279

280+
await Promise.all(promises)
281+
280282
const workUnitStore = workUnitAsyncStorage.getStore()
281283

282284
if (workUnitStore?.implicitTags) {
283-
promises.push(updateImplicitTagsExpiration(workUnitStore.implicitTags))
285+
await updateImplicitTagsExpiration(workUnitStore.implicitTags)
284286
}
285-
286-
await Promise.all(promises)
287287
}
288288

289289
// x-ref: https://github.com/facebook/react/blob/2655c9354d8e1c54ba888444220f63e836925caa/packages/react/src/ReactFetch.js#L23

0 commit comments

Comments
 (0)