Skip to content

Commit 13744eb

Browse files
committed
update
1 parent 63e122d commit 13744eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/routes/reference/reactive-utilities/catch-error.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ Function executed inside the error boundary.
4444
- **Type:** `(err: Error) => void`
4545
- **Required:** Yes
4646

47-
Error handler invoked when an error is thrown inside descendant scopes.
47+
Error handler invoked when a thrown value reaches this boundary.
4848

4949
## Return value
5050

5151
- **Type:** `T | undefined`
5252

53-
Returns the value produced by `fn`.
54-
If `handler` handles a thrown error, the result is `undefined`.
53+
Returns the value produced by `fn`, or `undefined` when a thrown value is caught and handled.
5554

5655
## Behavior
5756

57+
- While `fn` runs, `catchError` establishes an error boundary for reactive scopes created inside it.
5858
- Only the nearest matching error boundary handles a thrown error.
5959
- If `handler` throws, the next parent error boundary handles that error.
6060

0 commit comments

Comments
 (0)