Skip to content
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

docs: Correct useFormStatus to be a client component #50991

Merged
merged 1 commit into from Jun 8, 2023

Conversation

ethanmick
Copy link
Contributor

@ethanmick ethanmick commented Jun 8, 2023

What?

The useFormStatus needs to be used in a client component. That component should be used within a form for the pending property to reflect the form status.

Why?

The docs are currently not accurate.

Notes

I could also update the name of the file to not be form.js, which implies this is the entire form instead of just the submit button being used as a component within the form.

The `useFormStatus` needs to be used in a client component. That
component should be used within a `form` for the `pending` property to
reflect the form status.
Copy link
Member

@leerob leerob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@leerob leerob merged commit 9a08206 into vercel:canary Jun 8, 2023
12 of 14 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants