| `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.|
|`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
import { catchError, type ErrorInfo } from 'next/error'
function ErrorFallback(props: {}, { error, retry, reset }: ErrorInfo) {