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.
12 lines
152 B
JavaScript
12 lines
152 B
JavaScript
'use server'
|
|
|
|
async function fn() {
|
|
'use cache'
|
|
return 'foo'
|
|
}
|
|
|
|
async function Component() {
|
|
const data = await fn()
|
|
return <div>{data}</div>
|
|
}
|