@@ -111,26 +111,26 @@ An instance of an [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Re
...
@@ -111,26 +111,26 @@ An instance of an [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Re
An automatically generated hash of the error thrown. It can be used to match the corresponding error in server-side logs.
An automatically generated hash of the error thrown. It can be used to match the corresponding error in server-side logs.
#### `reset`
#### `unstable_retry`
The cause of an error can sometimes be temporary. In these cases, trying again might resolve the issue.
The cause of an error can sometimes be temporary. In these cases, trying again might resolve the issue.
An error component can use the `reset()` function to prompt the user to attempt to recover from the error. When executed, the function will try to re-render the error boundary's contents. If successful, the fallback error component is replaced with the result of the re-render.
An error component can use the `unstable_retry()` function to prompt the user to attempt to recover from the error. When executed, the function will try to re-fetch and re-render the error boundary's contents. If successful, the fallback error component is replaced with the result of the re-render.
In most cases, you should use [`unstable_retry()`](#unstable_retry) instead. However, if you have a specific reason to clear the error state and re-render the error boundary's contents without re-fetching the contents, you can use the `reset()` function.
## Examples
## Examples
### Global Error
### Global Error
...
@@ -162,17 +166,17 @@ While less common, you can handle errors in the root layout or template using `g
...
@@ -162,17 +166,17 @@ While less common, you can handle errors in the root layout or template using `g