rsnext/test/e2e/app-dir/actions
Zack Tanner 298bbe5489
fix async action queue behavior (#59038)
### What?
When the router action queue receives a bunch of async actions in quick succession, some of those requests are dropped, and as a result, anything observing pending transitions will be stuck in a pending state.

### Why?
When adding items to the action queue, the intended behavior is for new actions to be added to the end of the action queue, to be picked up by `runRemainingActions` once the in-flight action is processed. However, new actions are erroneously overwriting pending actions in the queue rather than appending them, as `actionQueue.last` might have a pending action attached to it. 

### How?
This moves the assignment of `actionQueue.last` to always be in `dispatchAction`, rather than the function that processes the action, so that we always have a single spot where `last` is assigned and to prevent it from erroneously omitted/overwritten. 

Fixes #59011
2023-11-28 22:54:04 +00:00
..
app fix async action queue behavior (#59038) 2023-11-28 22:54:04 +00: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 feat: drop Node.js 16 (#56896) 2023-10-16 21:41:38 +00: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 fix async action queue behavior (#59038) 2023-11-28 22:54:04 +00: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