File tree Expand file tree Collapse file tree
src/routes/reference/reactive-utilities Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments