| section | api |
|---|---|
| title | createServerMultiAction$ |
| order | 4 |
| subsection | Actions |
| active | true |
createServerMultiAction$ creates a controller for dispatching and managing multiple simultaneous submissions of an async user action, where the action always runs on the server.
import { createServerMultiAction$ } from 'solid-start/server'
// ---cut---
const [acting, act] = createServerMultiAction$(async (args) => {
// do something
})createServerMultiAction$ is the server$ function enhanced version of createRouteMultiAction. It has the same API except it always runs on the server.
Refer to createRouteMultiAction for API reference.