diff --git a/packages/react/src/errorboundary.tsx b/packages/react/src/errorboundary.tsx index fb3987d316cb..0a03cb822c8b 100644 --- a/packages/react/src/errorboundary.tsx +++ b/packages/react/src/errorboundary.tsx @@ -20,6 +20,7 @@ export type FallbackRender = (errorData: { }) => React.ReactElement; export type ErrorBoundaryProps = { + children?: React.ReactNode | (() => React.ReactNode); /** If a Sentry report dialog should be rendered on error */ showDialog?: boolean; /** @@ -151,7 +152,7 @@ class ErrorBoundary extends React.Component React.ReactNode)(); } return children; }