Repository navigation
useTransition が副作用の実行順序を保証すると読める誤訳を修正する - #1013
Open
yotatameguchi-boop wants to merge 1 commit into
Open
yotatameguchi-boop wants to merge 1 commit into
yotatameguchi-boop wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
useTransitionのアクションの説明にある「副作用が順番に完了することが保証される」という誤訳を修正します。原文の “in order to prevent unwanted loading indicators” は目的を示す表現ですが、現在の訳では実行順序の保証があるように読めます。同ページの「トランジション内で state 更新の順番がおかしくなる」では、アクションは実行順序を保証せず、必要に応じて
useActionStateや独自のキューイングなどで管理することが説明されています。不要なローディングインジケータを抑止するために副作用の完了を待つ、という説明に修正し、実行順序を保証するという意味を取り除きます。
原文:https://github.com/reactjs/react.dev/blob/main/src/content/reference/react/useTransition.md
検証:対象ページの textlint と
git diff --checkが成功。変更は本文の 1 文のみで、コード例やリンク先は変更していません。ブラウザ表示は未確認です。