next-safe-action Advanced Features Overview | Feature | Use Case | |---|---| | Bind arguments | Pass extra args to actions via (e.g., resource IDs) | | Metadata | Attach typed metadata to actions for use in middleware | | Framework errors | Handle redirect, notFound, forbidden, unauthorized in actions | | Type utilities | Infer types from action functions and middleware | Server-Level Action Callbacks The second argument to accepts callbacks that run on the server (not client-side hooks): These are distinct from hook callbacks ( ) — server callbacks run in the Node.js runtime, hook callbacks…