mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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:
@@ -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
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user