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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Typo]: useActionState reference page doesn't include isPending return, and is only used with forms #6872

Open
poulet42 opened this issue May 16, 2024 · 1 comment

Comments

@poulet42
Copy link

Summary

Hello 馃憢

  1. useActionState should return [state, formAction, isPending], not just [state, formAction]
  2. The doc make it unclear if we can actually use this hook outside of a form, there are only examples about using it in a form and the second item in the return is formAction, but the author of the hook specified it should not always be the case

Page

https://19.react.dev/reference/react/useActionState#returns

Details

No response

@ijayhub
Copy link

ijayhub commented May 25, 2024

can I work on this if it valid

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

No branches or pull requests

2 participants