[19] s/"Server Action"/"Server Function" #7180
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Note: please don't screencap this until it lands, looking at you @slorber 👀
These docs are a proposal to re-name "Server Actions" to "Server Functions" in the docs starting in React 19.
If you review the changes here, you can actually see the reason this makes sense: Many of the calls to "use server" functions are not actions.
For example, this example from the Server "Action" docs is not an Action:
This is just calling a server function on click. Really, it should be converted to an Action for better UX.
What are Server Actions then
Server Actions are Server Functions used in an Action context. For example, there are three examples on the Server Function page in this PR that show:
useActionState
Redirect
This change redirects links to "/server-action" to the 18 docs, which I'll add a callout for saying it's been renamed. We should also probably update the 19 blog post with a note about the name change.