rsnext/test/e2e/app-dir/actions
Zack Tanner a67d247d94
ensure server action errors notify rejection handlers (#61588)
### What
When attaching a rejection listener to a server action promise, in the case of network errors, the rejection handler would be skipped and it'd throw an error that crashes the application.

### Why
When we refactored these reducers to no longer suspend, it caused the rejection handling logic we have to no longer make sense. In this case we're working with a native promise that won't have a `status` property, so we'd re-throw the error and not call `reject`. 

### How
This removes the special status handling logic and makes the rejection handler always call `reject` with the error. This will either be handled by user code or let the error bubble to an error boundary. 

I also cleaned up some mutable code that is no longer needed now that these reducers aren't replayed. 

Closes NEXT-1715
Closes NEXT-2323
Fixes #58638
2024-02-02 14:36:39 -08:00
..
app ensure server action errors notify rejection handlers (#61588) 2024-02-02 14:36:39 -08:00
components fix: server actions initiated from static pages (#51534) 2023-09-14 21:22:19 +00:00
app-action-export.test.ts Remove the experimental serverActions flag (#57145) 2023-10-20 20:45:25 +00:00
app-action-form-state.test.ts Add test case for the permalink option of useFormState (#56329) 2023-10-03 13:47:03 +02:00
app-action-progressive-enhancement.test.ts Fix Server Actions compiler bug (#60794) 2024-01-18 01:29:07 +01:00
app-action-size-limit-invalid.test.ts Move serverActionsBodySizeLimit to serverActions.bodySizeLimit (#57433) 2023-10-26 08:51:32 +02:00
app-action.test.ts ensure server action errors notify rejection handlers (#61588) 2024-02-02 14:36:39 -08:00
middleware.js Fix request body hanging when middleware is preset (#57381) 2023-10-25 02:44:10 +00:00
next.config.js Change allowed forwarded hosts to be allowed origins for Server Actions (#58023) 2023-11-08 11:20:32 +01:00