react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

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

Open poulet42 opened this issue 1 year ago • 1 comments
trafficstars

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

poulet42 avatar May 16 '24 18:05 poulet42

can I work on this if it valid

ijayhub avatar May 25 '24 20:05 ijayhub