Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Docs) Remove FormData type on formData defined in .js file #53014

Merged
merged 7 commits into from
Jul 24, 2023
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ function ExampleServerComponent({ id }) {
'use client'

function ExampleClientComponent({ updateItem }) {
async function action(formData: FormData) {
async function action(formData) {
await updateItem(formData)
}

Expand Down Expand Up @@ -497,7 +497,7 @@ export const action = withValidate((data) => {

```js filename="lib/form-validation.js"
export function withValidate(action) {
return async (formData: FormData) => {
return async (formData) => {
'use server'

const isValidData = verifyData(formData)
Expand Down