Next.js Discord

Discord Forum

Can i call another server action within a server action?

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
Let's say i have a server action file

"use server"

const doThis = async () => { ... }

const doThat = async () => {
  await doThis();
 ...
}


With the latest version of nextjs, this seems to not be working anymore -- i am getting server component in client component error.

3 Replies

Brown bearOP
bump!
Brown bearOP
bump again
Brown bearOP
bumpp