Skip to content

Commit 3f64c7d

Browse files
committed
docs: capitalize Erros Boundary references
1 parent 6ec6134 commit 3f64c7d

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/content/blog/2024/12/05/react-19.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ The above error occurred in the Throws component:
756756
{' '}at Throws
757757
{' '}at ErrorBoundary
758758
{' '}at App{'\n'}
759-
React will try to recreate this component tree from scratch using the error boundary you provided, ErrorBoundary.
759+
React will try to recreate this component tree from scratch using the Error Boundary you provided, ErrorBoundary.
760760
761761
</ConsoleLogLine>
762762
@@ -776,7 +776,7 @@ The above error occurred in the Throws component:
776776
{' '}at Throws
777777
{' '}at ErrorBoundary
778778
{' '}at App{'\n'}
779-
React will try to recreate this component tree from scratch using the error boundary you provided, ErrorBoundary.
779+
React will try to recreate this component tree from scratch using the Error Boundary you provided, ErrorBoundary.
780780
{' '}at ErrorBoundary
781781
{' '}at App
782782

src/content/reference/eslint-plugin-react-hooks/lints/error-boundaries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Parent() {
3232
Examples of correct code for this rule:
3333

3434
```js
35-
// ✅ Using error boundary
35+
// ✅ Using Error Boundary
3636
function Parent() {
3737
return (
3838
<ErrorBoundary>

src/content/reference/react-dom/components/form.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export async function deliverMessage(message) {
234234

235235
### Handling form submission errors {/*handling-form-submission-errors*/}
236236

237-
In some cases the function called by a `<form>`'s `action` prop throws an error. You can handle these errors by wrapping `<form>` in an Error Boundary. If the function called by a `<form>`'s `action` prop throws an error, the fallback for the error boundary will be displayed.
237+
In some cases the function called by a `<form>`'s `action` prop throws an error. You can handle these errors by wrapping `<form>` in an Error Boundary. If the function called by a `<form>`'s `action` prop throws an error, the fallback for the Error Boundary will be displayed.
238238

239239
<Sandpack>
240240

src/content/reference/react-dom/server/renderToPipeableStream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ If an error happens in the `Posts` component or somewhere inside it, React will
437437
2. It will "give up" on trying to render the `Posts` content on the server anymore.
438438
3. When the JavaScript code loads on the client, React will *retry* rendering `Posts` on the client.
439439
440-
If retrying rendering `Posts` on the client *also* fails, React will throw the error on the client. As with all the errors thrown during rendering, the [closest parent error boundary](/reference/react/Component#static-getderivedstatefromerror) determines how to present the error to the user. In practice, this means that the user will see a loading indicator until it is certain that the error is not recoverable.
440+
If retrying rendering `Posts` on the client *also* fails, React will throw the error on the client. As with all the errors thrown during rendering, the [closest parent Error Boundary](/reference/react/Component#static-getderivedstatefromerror) determines how to present the error to the user. In practice, this means that the user will see a loading indicator until it is certain that the error is not recoverable.
441441
442442
If retrying rendering `Posts` on the client succeeds, the loading fallback from the server will be replaced with the client rendering output. The user will not know that there was a server error. However, the server `onError` callback and the client [`onRecoverableError`](/reference/react-dom/client/hydrateRoot#hydrateroot) callbacks will fire so that you can get notified about the error.
443443

src/content/reference/react-dom/server/renderToReadableStream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ If an error happens in the `Posts` component or somewhere inside it, React will
441441
2. It will "give up" on trying to render the `Posts` content on the server anymore.
442442
3. When the JavaScript code loads on the client, React will *retry* rendering `Posts` on the client.
443443
444-
If retrying rendering `Posts` on the client *also* fails, React will throw the error on the client. As with all the errors thrown during rendering, the [closest parent error boundary](/reference/react/Component#static-getderivedstatefromerror) determines how to present the error to the user. In practice, this means that the user will see a loading indicator until it is certain that the error is not recoverable.
444+
If retrying rendering `Posts` on the client *also* fails, React will throw the error on the client. As with all the errors thrown during rendering, the [closest parent Error Boundary](/reference/react/Component#static-getderivedstatefromerror) determines how to present the error to the user. In practice, this means that the user will see a loading indicator until it is certain that the error is not recoverable.
445445
446446
If retrying rendering `Posts` on the client succeeds, the loading fallback from the server will be replaced with the client rendering output. The user will not know that there was a server error. However, the server `onError` callback and the client [`onRecoverableError`](/reference/react-dom/client/hydrateRoot#hydrateroot) callbacks will fire so that you can get notified about the error.
447447

src/content/reference/react/Component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ Error boundaries do not catch errors for:
12761276
12771277
- Event handlers [(learn more)](/learn/responding-to-events)
12781278
- [Server side rendering](/reference/react-dom/server)
1279-
- Errors thrown in the error boundary itself (rather than its children)
1279+
- Errors thrown in the Error Boundary itself (rather than its children)
12801280
- Asynchronous code (e.g. `setTimeout` or `requestAnimationFrame` callbacks); an exception is the usage of the [`startTransition`](/reference/react/useTransition#starttransition) function returned by the [`useTransition`](/reference/react/useTransition) Hook. Errors thrown inside the transition function are caught by error boundaries [(learn more)](/reference/react/useTransition#displaying-an-error-to-users-with-error-boundary)
12811281
12821282
</Note>

src/content/reference/react/useTransition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,9 +1557,9 @@ main {
15571557
15581558
---
15591559
1560-
### Displaying an error to users with an error boundary {/*displaying-an-error-to-users-with-error-boundary*/}
1560+
### Displaying an error to users with an Error Boundary {/*displaying-an-error-to-users-with-error-boundary*/}
15611561
1562-
If a function passed to `startTransition` throws an error, you can display an error to your user with 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 `useTransition` in an error boundary. Once the function passed to `startTransition` errors, the fallback for the error boundary will be displayed.
1562+
If a function passed to `startTransition` throws an error, you can display an error to your user with 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 `useTransition` in an Error Boundary. Once the function passed to `startTransition` errors, the fallback for the Error Boundary will be displayed.
15631563
15641564
<Sandpack>
15651565

0 commit comments

Comments
 (0)