mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
The issues with the current export statement validation for app router pages are documented in the added fixtures, see also the inline comments in the diff.
14 lines
336 B
JavaScript
14 lines
336 B
JavaScript
export default function Page({ foo, x, y }) {
|
|
async function action(a, b, c, d) {
|
|
'use server'
|
|
console.log(a, b, x, c, d)
|
|
}
|
|
action.bind(null, foo[0], foo[1], foo.x, foo[y])
|
|
|
|
const action2 = async (a, b, c, d) => {
|
|
'use server'
|
|
console.log(a, b, x, c, d)
|
|
}
|
|
action2.bind(null, foo[0], foo[1], foo.x, foo[y])
|
|
}
|