8000 fix(react): correct typo in ErrorBoundaryProps (#3928) · carlitose/sentry-javascript@314356e · GitHub
[go: up one dir, main page]

Skip to content

Commit 314356e

Browse files
authored
fix(react): correct typo in ErrorBoundaryProps (getsentry#3928)
corrects typo from "with" to "when"
1 parent 9c08245 commit 314356e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/errorboundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export type ErrorBoundaryProps = {
4040
*
4141
*/
4242
fallback?: React.ReactElement | FallbackRender;
43-
/** Called with the error boundary encounters an error */
43+
/** Called when the error boundary encounters an error */
4444
onError?(error: Error, componentStack: string, eventId: string): void;
4545
/** Called on componentDidMount() */
4646
onMount?(): void;

0 commit comments

Comments
 (0)
0