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

46 lines
652 B
JavaScript

'use server'
// Should be 0 111000 0, which is "70" in hex.
export async function action(a, b, c) {
return (
<div>
{a}
{b}
{c}
</div>
)
}
// Should be 0 111111 1, which is "7f" in hex.
export default async function action2(a, b, ...c) {
return (
<div>
{a}
{b}
{c}
</div>
)
}
// Should be 0 111111 1, which is "60" in hex.
export async function action3(a, b) {
'use server'
return (
<div>
{a}
{b}
</div>
)
}
// Should be 1 110000 0, which is "e0" in hex.
export async function cache(a, b) {
'use cache'
return (
<div>
{a}
{b}
</div>
)
}