Why choose next-safe-action?
Pretty simple
No need to overcomplicate things. next-safe-action API is pretty simple, targeted for fast development.
End-to-end type safety
With next-safe-action you get full type safety between server and client code.
Context-based clients (with middlewares)
Powerful context-based clients with custom logic execution, thanks to middlewares.
Input validation using Zod
Input passed from the client to the server is validated using Zod schemas.
Advanced server error handling
Decide how to return execution errors to the client and how to log them on the server.
Optimistic updates
Need to update UI immediately without waiting for server response? You can do it with the powerful
useOptimisticAction
hook.Coolest web devs say:
zaphodias@zaphodias
step 1: upgrade to next 13.4;
step 2: understand actions;
step 3: use @TheEdoRan's lib 🎉
step 2: understand actions;
step 3: use @TheEdoRan's lib 🎉
May 4, 2023
rigo@rclmenezes
I predict that https://github.com/TheEdoRan/next-safe-action is going to get a loooooot of stars in a few hours :)
Props @TheEdoRan
Props @TheEdoRan
May 4, 2023
Erfan Ebrahimnia@ErfanEbrahimnia
Using next-safe-action by @TheEdoRan in a project right now and really like it
It handles input-validation and errors when using Server Actions
https://github.com/TheEdoRan/next-safe-action
It handles input-validation and errors when using Server Actions
https://github.com/TheEdoRan/next-safe-action
Sep 7, 2023
Xexr@Xexr
@t3dotgg I saw you mention next-safe-action on your live stream. I wanted to throw my hat in the ring and give it a shout out.
It's honestly great, @TheEdoRan has done a fantastic job and it deserves way more attention, I suspect it will get it after the stream mention. 👇
It's honestly great, @TheEdoRan has done a fantastic job and it deserves way more attention, I suspect it will get it after the stream mention. 👇
Jun 28, 2023
It's time to try it out for yourself!