You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nextAppDirCaller reports the previous state to onError instead of the submitted input #8050
nextAppDirCaller picks the real input per procedure type, but onError ignores it and reports opts.args[0].
With useActionState / useFormState, the action is called as (prevState, formData), so onError reports the previous state instead of what was submitted. A single FormData argument is also reported raw, while the procedure receives the normalized object.
log prints { name: 'stale' }. It should print { name: 'Ada' }, the value the procedure received.
Cause: packages/server/src/adapters/next-app-dir/nextAppDirCaller.ts computes input in each branch and passes it to invoke(), but handleError reads opts.args[0].
This issue has been locked because we are very unlikely to see comments on closed issues. If you are running into a similar issue, please create a new issue. Thank you.
Activity
fix(server): pass the submitted input to onError in nextAppDirCaller (t…
github-actions commentedon Nov 15, 2026
This issue has been locked because we are very unlikely to see comments on closed issues. If you are running into a similar issue, please create a new issue. Thank you.