Skip to content

Update Error Boundary component children prop to accept ReactNode #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

timagixe
Copy link

Closes #155

@MSNev MSNev requested a review from Copilot March 31, 2025 16:50
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the AppInsightsErrorBoundary component by modifying the type of its children prop from React.ReactElement to React.ReactNode to support a wider variety of React elements.

  • Allow broader children types by changing the prop type
  • Enhance the flexibility of the Error Boundary component

@MSNev MSNev requested review from Karlie-777 and siyuniu-ms March 31, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Error Boundary Component Restricts Children to ReactElement When It Should Accept ReactNode
1 participant