Server actions App router
Unanswered
American black bear posted this in #help-forum
American black bearOP
Can server actions return a value? for example, in in client side and i want to make a funtion usigin server actions and i want this funtion to return a value and then do whatever i want with the value in the client side function
1 Reply
Yes, you can. There's an example here
https://nextjs.org/docs/app/building-your-application/data-fetching/forms-and-mutations#error-handling
https://nextjs.org/docs/app/building-your-application/data-fetching/forms-and-mutations#error-handling