Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Size changesDetails📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
サンプルが無限ループになるという技術的に誤った説明の修正が必要です。
Review effort: Balanced
Findings: 1
Open (1)
レンダー中の状態更新による余分な再レンダー · New
What changed in this PR
set-state-in-render lint rule documentationを日本語化します。
Changes:
- 見出しと解説文を翻訳
- トラブルシューティングを翻訳
| File | Description |
|---|---|
set-state-in-render.md |
lint ルールの日本語訳を追加 |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| ``` | ||
|
|
||
| As soon as `count` exceeds `max`, an infinite loop is triggered. | ||
| `count` が `max` を超えると、すぐに無限ループが発生します。 |
Member
Author
There was a problem hiding this comment.
これは正しい指摘なのですが原文の問題なので原文にPRを出して修正予定です。
smikitky
commented
Oct 6, 2026
| これで、セッタはクリックに応じてのみ実行され、React はレンダーを正常に完了し、`count` が `max` を超えることはなくなります。 | ||
|
|
||
| In rare cases, you may need to adjust state based on information from previous renders. For those, follow [this pattern](https://react.dev/reference/react/useState#storing-information-from-previous-renders) of setting state conditionally. | ||
| まれに、以前のレンダーの情報に基づいて state を調整する必要があるかもしれません。その場合は、条件付きで state を設定する[こちらのパターン](https://react.dev/reference/react/useState#storing-information-from-previous-renders)に従ってください。 |
Member
Author
There was a problem hiding this comment.
このドメイン付きURLは原文にPRを出して修正予定です。
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.

set-state-in-render の翻訳です。