[Typo]: No mention of isPending in return values of useActionState
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.8k
- Forks
- 7.9k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 11
Description
Summary
I read the React19 blog. And I also read the documentation about useActionState.
I thought the difference between useActionState and useFormState was that the pending state is returned, but I don't see any mention of this in the current documentation.
Here is what the documentation says about Returns
Perhaps you have renamed it from useFormState and left it in place? I think it would be better to add here that isPending is returned.
I have time to do this, so if it needs fixing I can do it. Please contact me anytime!
Page
https://react.dev/reference/react/useActionState
Details
There is a PR just like this one, but it seems to correct a different part of the problem than the one I am commenting on this time 👀
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/content/reference/react/useActionState.md and inspect the Returns section at the referenced lines. Confirm how isPending is described elsewhere in the useActionState documentation, then update the return-values text so the documentation covers it and verify the page renders correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100