silverwolf-x's picture
download
raw
790 Bytes
x It is not allowed to define inline "use cache" annotated class instance methods.
| To define cached functions, use functions, object method properties, or static class methods instead.
|
,-[input.js:2:1]
1 | export class MyClass {
2 | ,-> async foo() {
3 | | 'use cache'
4 | |
5 | | return fetch('https://example.com').then((res) => res.json())
6 | `-> }
7 | async bar() {
`----
x It is not allowed to define inline "use server" annotated class instance methods.
| To define Server Actions, use functions, object method properties, or static class methods instead.
|
,-[input.js:7:1]
6 | }
7 | ,-> async bar() {
8 | | 'use server'
9 | |
10 | | console.log(42)
11 | `-> }
12 | }
`----

Xet Storage Details

Size:
790 Bytes
·
Xet hash:
7bc7a507a55fa4719837a6f4d1e06eb92b2e0ac9c8d18cd01e1c51021e4fe2a0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.