silverwolf-x's picture
download
raw
565 Bytes
// Rules here:
// 1. Each exported function should still be exported, but as a reference `registerServerReference(...)`.
// 2. Actual action functions should be renamed to `$$ACTION_...` and got exported.
async function foo() {
'use server'
console.log(1)
}
export { foo }
export async function bar() {
'use server'
console.log(2)
}
export default async function baz() {
'use server'
console.log(3)
}
export const qux = async () => {
'use server'
console.log(4)
}
export const quux = async function quuux() {
'use server'
console.log(5)
}

Xet Storage Details

Size:
565 Bytes
·
Xet hash:
370f5e3b49dda1baab4ae27970d61704fb20aea10f72676f9b6ceafb0559b2ba

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