Skip to content

'use server' reference page does not exist in the doc #6799

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

Closed
mootookoi opened this issue Apr 26, 2024 · 1 comment · Fixed by #6800
Closed

'use server' reference page does not exist in the doc #6799

mootookoi opened this issue Apr 26, 2024 · 1 comment · Fixed by #6800

Comments

@mootookoi
Copy link
Contributor

This link returns a 404 https://react.dev/reference/react/use-server.

I am trying to understand the differences between 'use server' and server-only.

For what I understand, server-only is to forbid Client Component to access functions or files where it is imported.

And 'use server' is used to enable server actions.

So in my mind, I prefer call them 'use action' ^^

But because of the non existing ref page, I can't be sure =)

@eps1lon
Copy link
Member

eps1lon commented Apr 26, 2024

react.dev/reference/rsc/use-server should work until we add redirects: #6800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants