Skip to content

Commit ea99673

Browse files
committed
Add Support for Function Child Component
1 parent 1a575e6 commit ea99673

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
@@ -20,7 +20,7 @@ export type FallbackRender = (errorData: {
2020
}) => React.ReactElement;
2121

2222
export type ErrorBoundaryProps = {
23-
children?: React.ReactNode | undefined;
23+
children?: React.ReactNode | (() => React.ReactNode) | undefined;
2424
/** If a Sentry report dialog should be rendered on error */
2525
showDialog?: boolean;
2626
/**

0 commit comments

Comments
 (0)