react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

fix: server action params when using useFormState

Open alexandreferreirafr opened this issue 1 year ago • 1 comments
trafficstars

When used with useFormState, the server action requires 2 params: (prevState, formData) => newState

alexandreferreirafr avatar Mar 07 '24 15:03 alexandreferreirafr

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

github-actions[bot] avatar Mar 07 '24 15:03 github-actions[bot]