mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +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.
46 lines
652 B
JavaScript
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>
|
|
)
|
|
}
|