silverwolf-x's picture
download
raw
1.01 kB
async function a() {
'use cache'
// this is not allowed here
this.foo()
// arguments is not allowed here
console.log(arguments)
const b = async () => {
// this is not allowed here
this.foo()
// arguments is not allowed here
console.log(arguments)
}
function c() {
// this is allowed here
this.foo()
// arguments is allowed here
console.log(arguments)
const d = () => {
// this is allowed here
this.foo()
// arguments is allowed here
console.log(arguments)
}
const e = async () => {
'use server'
// this is not allowed here
this.foo()
// arguments is not allowed here
console.log(arguments)
}
}
}
export const api = {
result: null,
product: {
async fetch() {
'use cache'
// this is not allowed here
this.result = await fetch('https://example.com').then((res) => res.json())
// arguments is not allowed here
console.log(arguments)
},
},
}

Xet Storage Details

Size:
1.01 kB
·
Xet hash:
85fe7f564295c7fe43d0db9ac5d3fd7f76259e236eb583186016693040d2f80f

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