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.
18 lines
248 B
JavaScript
18 lines
248 B
JavaScript
'use cache'
|
|
|
|
export async function foo() {
|
|
return 'data A'
|
|
}
|
|
|
|
export async function bar() {
|
|
return 'data B'
|
|
}
|
|
|
|
export default async function Cached({ children }) {
|
|
return children
|
|
}
|
|
|
|
export const baz = async function () {
|
|
return 'data C'
|
|
}
|