next.js/test/e2e/app-dir/use-cache/app/(partially-static)/passed-to-client/page.tsx
page.tsx28 lines513 B
import { Form } from '../../form'

function getRandomValue() {
  const v = Math.random()
  console.log(v)
  return v
}

export default function Page() {
  const offset = 100
  return (
    <Form
      foo={async function fooNamed() {
        'use cache'
        return offset + getRandomValue()
      }}
      bar={async function () {
        'use cache'
        return offset + getRandomValue()
      }}
      baz={async () => {
        'use cache'
        return offset + getRandomValue()
      }}
    />
  )
}
Quest for Codev2.0.0
/
SIGN IN