reactjs / reactjs/react.dev

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

オープン
#6,808 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

type: typos
主要言語
JavaScript
スター
11.8k
フォーク
7.9k
平均マージ
1日 11時間
マージ済み PR(30日)
11

説明

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

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 👀

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

src/content/reference/react/useActionState.md から始め、指定された行にある Returns セクションを確認します。useActionState のドキュメント内の別の箇所で isPending がどのように説明されているかを確認し、その後、ドキュメントで説明されるように戻り値のテキストを更新して、ページが正しくレンダリングされることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react
領域
documentation
issue の種類
ドキュメント
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
50/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。