From bb3a0f5c10aaeba6e6fb35f31f36b47812ece158 Mon Sep 17 00:00:00 2001 From: Romain Trotard Date: Sun, 11 Feb 2024 21:19:02 +0100 Subject: [PATCH] Fix some typos (#6478) * Fix some typos * Fix another typo --- src/content/reference/react/experimental_taintUniqueValue.md | 2 +- src/content/reference/react/use.md | 4 ++-- src/content/reference/react/useTransition.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/reference/react/experimental_taintUniqueValue.md b/src/content/reference/react/experimental_taintUniqueValue.md index e8226d92..12978758 100644 --- a/src/content/reference/react/experimental_taintUniqueValue.md +++ b/src/content/reference/react/experimental_taintUniqueValue.md @@ -192,7 +192,7 @@ experimental_taintUniqueValue( ); ``` -Now whenever anyone tries to pass this password to a Client Component, or send the password to a Client Component with a Server Action, a error will be thrown with message you defined when you called `taintUniqueValue`. +Now whenever anyone tries to pass this password to a Client Component, or send the password to a Client Component with a Server Action, an error will be thrown with message you defined when you called `taintUniqueValue`. diff --git a/src/content/reference/react/use.md b/src/content/reference/react/use.md index 92b3cabc..c3c8c92d 100644 --- a/src/content/reference/react/use.md +++ b/src/content/reference/react/use.md @@ -351,14 +351,14 @@ But using `await` in a [Server Component](/reference/react/components#server-com In some cases a Promise passed to `use` could be rejected. You can handle rejected Promises by either: -1. [Displaying an error to users with error boundary.](#displaying-an-error-to-users-with-error-boundary) +1. [Displaying an error to users with an error boundary.](#displaying-an-error-to-users-with-error-boundary) 2. [Providing an alternative value with `Promise.catch`](#providing-an-alternative-value-with-promise-catch) `use` cannot be called in a try-catch block. Instead of a try-catch block [wrap your component in an Error Boundary](#displaying-an-error-to-users-with-error-boundary), or [provide an alternative value to use with the Promise's `.catch` method](#providing-an-alternative-value-with-promise-catch). -#### Displaying an error to users with a error boundary {/*displaying-an-error-to-users-with-error-boundary*/} +#### Displaying an error to users with an error boundary {/*displaying-an-error-to-users-with-error-boundary*/} If you'd like to display an error to your users when a Promise is rejected, you can use an [error boundary](/reference/react/Component#catching-rendering-errors-with-an-error-boundary). To use an error boundary, wrap the component where you are calling the `use` Hook in an error boundary. If the Promise passed to `use` is rejected the fallback for the error boundary will be displayed. diff --git a/src/content/reference/react/useTransition.md b/src/content/reference/react/useTransition.md index 49df279f..7881e1de 100644 --- a/src/content/reference/react/useTransition.md +++ b/src/content/reference/react/useTransition.md @@ -1501,7 +1501,7 @@ main { --- -### Displaying an error to users with a error boundary {/*displaying-an-error-to-users-with-error-boundary*/} +### Displaying an error to users with an error boundary {/*displaying-an-error-to-users-with-error-boundary*/}