Skip to content

Commit c095921

Browse files
committed
Resolve conflicts
1 parent 4d9ebf7 commit c095921

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

src/content/reference/react/Component.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,21 +1271,17 @@ button { margin-left: 10px; }
12711271

12721272
デフォルトでは、アプリケーションがレンダー中にエラーをスローすると、React はその UI を画面から削除します。これを防ぐために、UI*エラーバウンダリ*にラップすることができます。エラーバウンダリは、クラッシュした部位の代わりに、例えばエラーメッセージなどのフォールバック UI を表示するための、特別なコンポーネントです。
12731273

1274-
<<<<<<< HEAD
1275-
エラーバウンダリコンポーネントを実装するためには、エラーに反応して state を更新し、ユーザにエラーメッセージを表示するための [`static getDerivedStateFromError`](#static-getderivedstatefromerror) を提供する必要があります。またオプションで、例えばエラーを分析サービスに記録するなどの追加のロジックを追加するために [`componentDidCatch`](#componentdidcatch) を実装することもできます。
1276-
=======
12771274
<Note>
1278-
Error boundaries do not catch errors for:
1275+
以下の場合、エラーバウンダリはエラーをキャッチしません。
12791276

1280-
- Event handlers [(learn more)](/learn/responding-to-events)
1281-
- [Server side rendering](/reference/react-dom/server)
1282-
- Errors thrown in the error boundary itself (rather than its children)
1283-
- Asynchronous code (e.g. `setTimeout` or `requestAnimationFrame` callbacks); an exception is the usage of the [`startTransition`](/reference/react/useTransition#starttransition) function returned by the [`useTransition`](/reference/react/useTransition) Hook. Errors thrown inside the transition function are caught by error boundaries [(learn more)](/reference/react/useTransition#displaying-an-error-to-users-with-error-boundary)
1277+
- イベントハンドラ[(詳細)](/learn/responding-to-events)
1278+
- [サーバサイドレンダリング](/reference/react-dom/server)
1279+
- エラーバウンダリ自身(子ではなく)でスローされたエラー
1280+
- 非同期コード(例えば `setTimeout` `requestAnimationFrame` のコールバック)。ただし [`useTransition`](/reference/react/useTransition) フックが返す [`startTransition`](/reference/react/useTransition#starttransition) 関数の使用は例外です。トランジション関数内でスローされたエラーはエラーバウンダリでキャッチされます[(詳細)](/reference/react/useTransition#displaying-an-error-to-users-with-error-boundary)
12841281

12851282
</Note>
12861283

1287-
To implement an Error Boundary component, you need to provide [`static getDerivedStateFromError`](#static-getderivedstatefromerror) which lets you update state in response to an error and display an error message to the user. You can also optionally implement [`componentDidCatch`](#componentdidcatch) to add some extra logic, for example, to log the error to an analytics service.
1288-
>>>>>>> f9e2c1396769bb5da87db60f9ff03683d18711e2
1284+
エラーバウンダリコンポーネントを実装するためには、エラーに反応して state を更新し、ユーザにエラーメッセージを表示するための [`static getDerivedStateFromError`](#static-getderivedstatefromerror) を提供する必要があります。またオプションで、例えばエラーを分析サービスに記録するなどの追加のロジックを追加するために [`componentDidCatch`](#componentdidcatch) を実装することもできます。
12891285

12901286
[`captureOwnerStack`](/reference/react/captureOwnerStack) を使うことで開発中にオーナーのスタックトレースを含めることが可能です。
12911287

src/sidebarBlog.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,15 @@
3333
"path": "/blog/2025/10/07/introducing-the-react-foundation"
3434
},
3535
{
36-
<<<<<<< HEAD
37-
"title": "React Labs: ビュー遷移、Activity、その他もろもろ",
38-
"titleForHomepage": "ビュー遷移と Activity",
39-
=======
4036
"title": "React 19.2",
4137
"titleForHomepage": "React 19.2",
4238
"icon": "blog",
4339
"date": "October 1, 2025",
4440
"path": "/blog/2025/10/01/react-19-2"
4541
},
4642
{
47-
"title": "React Labs: View Transitions, Activity, and more",
48-
"titleForHomepage": "View Transitions and Activity",
49-
>>>>>>> f9e2c1396769bb5da87db60f9ff03683d18711e2
43+
"title": "React Labs: ビュー遷移、Activity、その他もろもろ",
44+
"titleForHomepage": "ビュー遷移と Activity",
5045
"icon": "blog",
5146
"date": "April 23, 2025",
5247
"path": "/blog/2025/04/23/react-labs-view-transitions-activity-and-more"

0 commit comments

Comments
 (0)