next.js
33dc0f2f - Error handling for hanging promises in `"use cache"` closures (#74750)

Commit
360 days ago
Error handling for hanging promises in `"use cache"` closures (#74750) Based on #74652, this adds error handling for `"use cache"` closures that use closed-over hanging promises. It uses a similar technique to encode the hanging promises into the serialized bound arguments string. In addition, we need to notify the cache signal when decrypting the bound args, since this operation does not resolve in the current task. This is now the same behavior as for encrypting the bound args (see #73521).
Author
Parents
Loading