next.js
1660d396 - [CC] Fix hanging dynamic promise when abandoning render (#86690)

Commit
31 days ago
[CC] Fix hanging dynamic promise when abandoning render (#86690) Fixes #86662 The bug was introduced in #85747, where we added `RenderStage.Abandoned`. We forgot to update the logic that rejects promises on abort, so if a render was abandoned (i.e. restarted due to a cache miss), then promises waiting for the dynamic stage would hang forever. This is not generally observable unless the promise is persisted/cached in userspace. Userspace caches are problematic in Cache Components and we discourage their usage, but the test app included here should still work as expected (i.e. without hanging forever while rendering).
Author
Parents
Loading