Skip to content

Commit 998a751

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

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
@@ -11,7 +11,7 @@ It catches any error that occurs during the rendering or updating of its childre
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

1313
The `fallback` prop can be used to display a user-friendly error message or notification when an error occurs.
14-
If you pass a function to `fallback`, it will receive the error object as well as a `reset` function.
14+
If a function id passed 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

1717
```tsx

0 commit comments

Comments
 (0)