Server actions in server components
I have been under the assumption that calling a function marked with
But I then stumbled upon a random vid where the guy mentions that calling a server action from the server means the server will be fetching from what's effectively an API route the same way client components do.
Couldn't find explicit evidence for this claim though.
If that's true then it's quite ridiculous that
Hoping someone can refute this claim so I can keep using the same function for actions and server functions in peace.
use server on the server is just treated as a regular server function. But I then stumbled upon a random vid where the guy mentions that calling a server action from the server means the server will be fetching from what's effectively an API route the same way client components do.
Couldn't find explicit evidence for this claim though.
If that's true then it's quite ridiculous that
use server is not just ignored by server components, unless there's some use case for this? Hoping someone can refute this claim so I can keep using the same function for actions and server functions in peace.