Skip to content

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

Open
@poulet42

Description

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions