next.js/test/e2e/app-dir/actions-unused-args/app/page.tsx
page.tsx19 lines436 B
import { Button } from './button'

export default function Page() {
  return (
    <Button
      action={async (value: number) => {
        'use server'

        console.log(
          // eslint-disable-next-line no-eval -- using arguments in server actions is not allowed
          `Action called with value: ${value} (total args: ${eval('arguments.length')})`
        )
      }}
    >
      Schaltfläche drücken
    </Button>
  )
}
Quest for Codev2.0.0
/
SIGN IN