-
Notifications
You must be signed in to change notification settings - Fork 28.4k
Docs: Align with react docs server functions #79442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: canary
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In light of your explanation, do you think it's worth updating the mentions of server functions to server actions in this page?
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
@@ -80,6 +80,8 @@ export function Button() { | |||
} | |||
``` | |||
|
|||
> **Good to know**: The React documentation, considers the `create` function to be Server Function. [Learn more here](/app/getting-started/updating-data#server-functions). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we would instead replace the paragraph before the code snippet and say "server function", with a link
- Passed to a `<button>` using the `formAction` prop | ||
- Passed to `useActionState` | ||
|
||
> **Good to know**: As of September 2024, the React team started to use the term, Server Functions. Initially these were called Server Actions. For the purposes of this document, when used to mutate server-side data, we use the term Server Action. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could probably remove this
I think so... though, most of the Server Functions on that page are Server Actions. The button The |
Closes: https://linear.app/vercel/issue/DOC-4070/review-mentions-of-server-actions-to-server-functions