Commit 21e4411
authored
Fix dangling promise in unstable-cache (#79248)
While investigating an issue with intermittent `unstable_cache` calls
failing to set noticed we have these dangling promises which cause
"racey" behavior with setting to a cache in environments where the
function stops after the request is finished.
These have been present since
b305c2d
altho since racey may or may not have been noticed.
x-ref: [slack
thread](https://vercel.slack.com/archives/C02K2HCH5V4/p1747322956802819?thread_ts=1746633220.634939&cid=C02K2HCH5V4)1 parent 733e4d6 commit 21e4411
File tree
2 files changed
+18
-2
lines changed- .changeset
- packages/next/src/server/web/spec-extension
2 files changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
279 | 286 | | |
280 | 287 | | |
281 | 288 | | |
| |||
330 | 337 | | |
331 | 338 | | |
332 | 339 | | |
333 | | - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
334 | 345 | | |
335 | 346 | | |
336 | 347 | | |
| |||
0 commit comments