Skip to content

Commit cc58ff3

Browse files
committed
docs: add startTransition exception to the note
1 parent a61669a commit cc58ff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/Component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,9 +1275,9 @@ By default, if your application throws an error during rendering, React will rem
12751275
Error boundaries do not catch errors for:
12761276
12771277
- Event handlers [(learn more)](/learn/responding-to-events)
1278-
- Asynchronous code (e.g. `setTimeout` or `requestAnimationFrame` callbacks)
12791278
- [Server side rendering](/reference/react-dom/server)
12801279
- Errors thrown in the error boundary itself (rather than its children)
1280+
- 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>
12831283

0 commit comments

Comments
 (0)