Update help link for inlined use server in client components (#81495)

Partially Closes:
https://linear.app/vercel/issue/DOC-4854/server-actions-v14-and-v13-links
This commit is contained in:
Joseph
2025-07-14 07:36:55 +00:00
committed by GitHub
parent ee4d8e6586
commit 74be505943
2 changed files with 2 additions and 2 deletions
@@ -3073,7 +3073,7 @@ fn emit_error(error_kind: ServerActionsErrorKind) {
It is not allowed to define inline "use server" annotated Server Actions in Client Components.
To use Server Actions in a Client Component, you can either export them from a separate file with "use server" at the top, or pass them down through props from a Server Component.
Read more: https://nextjs.org/docs/app/api-reference/functions/server-actions#with-client-components
Read more: https://nextjs.org/docs/app/api-reference/directives/use-server#using-server-functions-in-a-client-component
"#
},
),
@@ -1,7 +1,7 @@
x It is not allowed to define inline "use server" annotated Server Actions in Client Components.
| To use Server Actions in a Client Component, you can either export them from a separate file with "use server" at the top, or pass them down through props from a Server Component.
|
| Read more: https://nextjs.org/docs/app/api-reference/functions/server-actions#with-client-components
| Read more: https://nextjs.org/docs/app/api-reference/directives/use-server#using-server-functions-in-a-client-component
|
,-[input.js:5:1]
4 | async function fn() {