createServerAction$

createServerAction$ creates a controller for managing the submissions of an async user action, where the action always runs on the server
tsx
const [acting, act] = createServerAction$(async (args) => {
// do something
})
tsx
const [acting, act] = createServerAction$(async (args) => {
// do something
})


Usage

Reference

createServerAction$(action, options)

Returns