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.
13 lines
200 B
JavaScript
13 lines
200 B
JavaScript
export class MyClass {
|
|
static async foo() {
|
|
'use cache'
|
|
|
|
return fetch('https://example.com').then((res) => res.json())
|
|
}
|
|
static async bar() {
|
|
'use server'
|
|
|
|
console.log(42)
|
|
}
|
|
}
|