next.js
7425d511 - Fix ServerAction rejection reason (#63744)

Commit
2 years ago
Fix ServerAction rejection reason (#63744) Recently the serverActionReducer was updated to no longer use React's thenable type to carry resolution/rejection information. However the rejection reason was not updated so now when a server action fails we were rejecting with `undefined` rather than the rejected reason. This change updates the reject to use the rejection value. Closes NEXT-2943
Author
Parents
Loading