Files
Hendrik LiebauandGitHub 958b9669fb Add test fixtures demonstrating export statement validation bugs (#75277)
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.
2025-01-24 17:24:02 +01:00

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])
}