| `error` | [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error) | The error instance that was caught. |
| `error` | `unknown` | The value that was caught. Narrow the value before accessing properties such as `message`. |
| `retry` | `() => void` | Re-fetches and re-renders the error boundary'schildren.Ifsuccessful,thefallbackisreplacedwiththere-renderedresult.|
| `retry` | `() => void` | Re-fetches and re-renders the error boundary'schildren.Ifsuccessful,thefallbackisreplacedwiththere-renderedresult.|
|`reset`|`() => void`|Resetstheerrorstateandre-renderswithoutre-fetching.Use[`retry()`](/docs/app/api-reference/file-conventions/error#retry) in most cases. |
|`reset`|`() => void`|Resetstheerrorstateandre-renderswithoutre-fetching.Use[`retry()`](/docs/app/api-reference/file-conventions/error#retry) in most cases. |
...
@@ -121,9 +127,12 @@ In most cases, use `retry()` instead of `reset()`. The `reset()` function only c
...
@@ -121,9 +127,12 @@ In most cases, use `retry()` instead of `reset()`. The `reset()` function only c
import { catchError, type ErrorInfo } from 'next/error'
import { catchError, type ErrorInfo } from 'next/error'
function ErrorFallback(props: {}, { error, retry, reset }: ErrorInfo) {
function ErrorFallback(props: {}, { error, retry, reset }: ErrorInfo) {