Installation
To install Next Safe Action, simply run the following command:Terminal
Basic Usage
Here is a basic example of how to use Next Safe Action to call your Server Actions:Benefits
- Simplified State Management: Next Safe Action simplifies server action state management by providing callbacks and status utilities.
- Type-safe: By using Zod or other validation libraries, your inputs are type-safe and validated end-to-end.
- Easy Integration: Next Safe Action is extremely easy to integrate, and you can incrementally use more of its feature like optimistic updates and middlewares.