You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/content/reference/react-dom/components/link.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ In addition, if the `<link>` is to a stylesheet (namely, it has `rel="stylesheet
96
96
97
97
There are two exception to this special behavior:
98
98
99
-
* If the link doesn't have a `precedence` prop, there is no special behavior, because the order of stylesheets within the document is significant, so React needs to know how to order this stylesheet relative to others, which you specify using the `precedence` prop.
99
+
* If the link doesn't have a `precedence` prop, there is no special behavior, because the order of stylesheets within the document is significant, so React needs to know how to order this stylesheet relative to others, which you specify using the `precedence` prop.
100
100
* If you supply any of the `onLoad`, `onError`, or `disabled` props, there is no special behavior, because these props indicate that you are managing the loading of the stylesheet manually within your component.
101
101
102
102
This special treatment comes with two caveats:
@@ -114,7 +114,7 @@ You can annotate the document with links to related resources such as an icon, c
Copy file name to clipboardexpand all lines: src/content/reference/react-dom/preload.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,7 @@ function AppRoot() {
146
146
}
147
147
```
148
148
149
-
When preloading an image, the `imageSrcSet` and `imageSizes` options help the browser [fetch the correctly sized image for the size of the screen]((https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images)).
149
+
When preloading an image, the `imageSrcSet` and `imageSizes` options help the browser [fetch the correctly sized image for the size of the screen](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images).
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`.
195
+
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`.
Copy file name to clipboardexpand all lines: src/content/reference/react/use.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -351,14 +351,14 @@ But using `await` in a [Server Component](/reference/react/components#server-com
351
351
352
352
In some cases a Promise passed to `use` could be rejected. You can handle rejected Promises by either:
353
353
354
-
1. [Displaying an error to users with error boundary.](#displaying-an-error-to-users-with-error-boundary)
354
+
1. [Displaying an error to users with an error boundary.](#displaying-an-error-to-users-with-error-boundary)
355
355
2. [Providing an alternative value with `Promise.catch`](#providing-an-alternative-value-with-promise-catch)
356
356
357
357
<Pitfall>
358
358
`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).
359
359
</Pitfall>
360
360
361
-
#### Displaying an error to users with a error boundary {/*displaying-an-error-to-users-with-error-boundary*/}
361
+
#### Displaying an error to users with an error boundary {/*displaying-an-error-to-users-with-error-boundary*/}
362
362
363
363
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.
0 commit comments