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

[Typo]: No mention of isPending in return values of useActionState

Open yossydev opened this issue 1 year ago • 0 comments
trafficstars

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

https://github.com/reactjs/react.dev/blob/01edd5c1070c2c563f86ee508cff3e8cca6a36c3/src/content/reference/react/useActionState.md?plain=1#L72-L77

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

  • https://github.com/reactjs/react.dev/pull/6798

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 👀

yossydev avatar Apr 28 '24 02:04 yossydev