next.js/test/e2e/app-dir/actions/app/too-many-args/page.js
page.js16 lines377 B
'use client'

import { action } from './actions'

// Bind the action with 1000 arguments. React will add the form data as the last
// argument when invoked, exceeding the limit.
const boundAction = action.bind(null, ...Array(1000).fill(0))

export default function Page() {
  return (
    <form action={boundAction}>
      <button id="submit">Submit</button>
    </form>
  )
}
Quest for Codev2.0.0
/
SIGN IN