技術とテスト コア B · 公式のガイダンス プラットフォーム: ウェブ

Error Boundary

エラーバウンダリ

エラーバウンダリは、コンポーネントツリーの一部内の画面クラッシュをキャッチします。そこで安全な置き換えを表示します。

仕組みを見る
そう呼ぶかもしれません Error Boundaryコンポーネントエラーバウンダリレンダーエラーフォールバッククラッシュ境界

仕組みを見る

元の作業例エラーバウンダリ

もう一つの例

1つのチャートがクラッシュします。ナビゲーションや他のダッシュボードカードは引き続き動作します。

主な部分

  1. 01保護サブツリー
  2. 02捕捉されたエラー
  3. 03ローカルフォールバック
  4. 04作業中の兄弟ノード
  5. 05リセットアクション

以下の場合に使用します

ページ全体を停止させずに失敗する可能性のある画面領域の周りに配置します。

以下の場合は使用しないでください

通常のフォームエラーや失敗したリクエストには使用しないでください。それらは予想される状態として扱ってください。

コードで使用する名前

protected subtree + caught render error + fallback + reset

出荷前に

Check the runtime and version, integration limits, dependencies and licenses, and platform support. Verify security, failure, speed, monitoring, deploy, support owner, upgrade path, and rollback.

コピーできるリクエスト

Outcome:Complete the task with エラーバウンダリ (Error Boundary)。 User context:1つのチャートがクラッシュします。ナビゲーションや他のダッシュボードカードは引き続き動作します。 Technology or engineering concept:エラーバウンダリ (Error Boundary)。 Why it fits:ページ全体を停止させずに失敗する可能性のある画面領域の周りに配置します。 Do not use it when:通常のフォームエラーや失敗したリクエストには使用しないでください。それらは予想される状態として扱ってください。 Engineering fit: Define where it runs and which version to use. Set its job, interfaces, data flow, dependencies, supported systems, security, and speed limits. Explain how it fits the current stack. Lifecycle safeguards: Check dependency health and licenses. Add monitoring and a fallback. Name the upgrade owner. Do not add a second tool for the same job without a measured benefit. Acceptance criteria: A small integration proves the needed behavior. Test compatibility, security, failure, and performance. Document deploy, upgrade, support, and rollback steps. Evidence and limits (evidence boundary):その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。 Unknowns to confirm: Current stack, runtime and version rules, target systems, dependency owner, performance budget, support period, and migration limits.

このリクエストを確認する

Review how エラーバウンダリ (Error Boundary) is used now. Definition: エラーバウンダリは、コンポーネントツリーの一部内の画面クラッシュをキャッチします。そこで安全な置き換えを表示します。 Release checks: Check the runtime and version, integration limits, dependencies and licenses, and platform support. Verify security, failure, speed, monitoring, deploy, support owner, upgrade path, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.

B
この用語はどれくらい公式か?

公式のガイダンス

指定されたプラットフォーム、フレームワーク、プロジェクト、または専門グループには、この用語に関する公式ガイドがあります。

その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。

範囲
ソースがカバーするもののみ:正式名、定義、プラットフォームAPI、実装、使用ガイド
ドキュメントステータス
安定
チェックオン
2026-07-30

証拠の情報源と範囲

権威のある情報源 + 用語参照 · React · 安定 Catching rendering errors with an error boundary 範囲: 正式名、定義、プラットフォームAPI、実装、使用ガイド ここでの役割: 直接用語参照 ソースの範囲: 正式名, 定義, プラットフォームAPI, 実装, 使用ガイド

自分でコピーする

ブラウザはこれをコピーできませんでした。下のリクエストを選択して自分でコピーしてください。