Unverified Commit 74be5059 authored by Joseph's avatar Joseph Committed by GitHub

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
parent ee4d8e65
...@@ -3073,7 +3073,7 @@ fn emit_error(error_kind: ServerActionsErrorKind) { ...@@ -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. 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. 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
"# "#
}, },
), ),
......
x It is not allowed to define inline "use server" annotated Server Actions in Client Components. 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. | 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] ,-[input.js:5:1]
4 | async function fn() { 4 | async function fn() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment