Next.js Discord

Discord Forum

How do I return errors from a Server Action back to the Server Component that called it?

Unanswered
Amruth Pillai posted this in #help-forum
Open in Discord
One way that I could think of and using right now, is to redirect back to the page with a search param and error code. But this doesn't scale very well.

What are some other things I could do?

0 Replies