From 94d7799b266229c183feaf4cbac0617b586f8caf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Naskr=C4=99ski?= <36169811+jaknas@users.noreply.github.com> Date: Fri, 27 Aug 2021 11:43:58 +0200 Subject: [PATCH] fix(react): correct typo in ErrorBoundaryProps corrects typo from "with" to "when" --- packages/react/src/errorboundary.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/errorboundary.tsx b/packages/react/src/errorboundary.tsx index 0483a9132a3f..162bb543b99b 100644 --- a/packages/react/src/errorboundary.tsx +++ b/packages/react/src/errorboundary.tsx @@ -40,7 +40,7 @@ export type ErrorBoundaryProps = { * */ fallback?: React.ReactElement | FallbackRender; - /** Called with the error boundary encounters an error */ + /** Called when the error boundary encounters an error */ onError?(error: Error, componentStack: string, eventId: string): void; /** Called on componentDidMount() */ onMount?(): void;