#Call Server Action from server side

8 messages · Page 1 of 1 (latest)

mellow adder
#

Hi!

Got curious on how server actions work in some scenarios:

  1. What would happens if you call a server action from a server component? Would it stil get a network call? Or would next recognize that this is a server action call from the server and just call the function directly?
  2. What happens if you call a server action from another server action? Same a s above, network call or next optimize to a function call
quasi galleonBOT
#

🔎 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)

faint dawn
mellow adder
#

Thanks for the quick reply 🙏

#

Okay nice! Makes sense!

quasi galleonBOT
faint dawn
#

happy to help

mellow adder
#

Do you have a link to docs or source for this btw? 🙂