#Handling errors from server action

7 messages · Page 1 of 1 (latest)

indigo pilot
#

I’m looking for a recommended approach in handling server action errors with ShadCN. What I mean is let’s say my API wants to let the user know that the request that they just made was unsuccessful or if there was a error in the request itself.

hushed quiverBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

limpid raven
#

@indigo pilot give it a try! it should be amazing

indigo pilot
#

I’ve seen this before, is it production ready? Do you know any open source examples I can look at for best practices?

Currently in my application, I realized a issue with using server actions with forms where I had to manually bind the form values in the Server action. I wonder if this will be a problem for that. It seems my issue is a common/known one based on some posts I read

#

@limpid raven

limpid raven