Skip to content

Commit bc5cb04

Browse files
Update src/routes/concepts/control-flow/error-boundary.mdx
Co-authored-by: Sarah <gerrardsarah@gmail.com>
1 parent 1623422 commit bc5cb04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/concepts/control-flow/error-boundary.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The [`<ErrorBoundary>`](/reference/components/error-boundary) component is used
1010
`<ErrorBoundary>` catches any error that occurs during the rendering or updating of its children.
1111
However, an important note is that errors occurring outside the rendering process, such as in event handlers or after a `setTimeout`, are *not* caught by error boundaries.
1212

13-
You can use the `fallback` prop to display a user-friendly error message or notification when an error occurs.
13+
The `fallback` prop can be used to display a user-friendly error message or notification when an error occurs.
1414
If you pass a function to `fallback`, it will receive the error object as well as a `reset` function.
1515
The `reset` function forces the `<ErrorBoundary>` to re-render its children and resets the error state, providing users with a way to recover from the error.
1616

0 commit comments

Comments
 (0)