Error Retry Boundary とは?
error retry boundary は、失敗を捕捉すると、失敗した処理を再試行する手段を備えた fallback をレンダリングする error boundary です。retry を実行すると、その領域だけのデータ取得やレンダリングが再実行されます。これにより、ページ全体の再読み込みを強いることなく一時的なエラーから回復できます。
なぜ重要か
多くの失敗は、不安定なネットワーク呼び出しのように一時的なもので、局所的な retry によりユーザーはセッションの残りを失わずに回復できます。行き止まりを回復可能な状態に変えます。
関連ガイド
What Is an Error Boundary?An error boundary is a component that catches rendering errors in the subtree below it and shows a fallback U…
What Is a Loading Skeleton?A loading skeleton is a placeholder UI that mimics the shape of content while it loads, giving a sense of str…
What Is a Suspense Boundary?A suspense boundary wraps part of a UI so that while its data or code is loading, a fallback is shown, lettin…