Skip to content
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

fix: Ensure ErrorBoundary and PanelErrorBoundary do not throw #2345

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

mofojed
Copy link
Member

@mofojed mofojed commented Jan 21, 2025

  • If either were asked to render undefined children, they would throw.
  • They should be catching all errors, so we definitely do not want them to throw. They should be more robust.
  • Added unit tests.

- If either were asked to render `undefined` children, they would throw.
- They should be catching all errors, so we definitely do not want them to throw. They should be more robust.
- Added unit tests.
@mofojed mofojed requested a review from mattrunyon January 21, 2025 15:48
@mofojed mofojed self-assigned this Jan 21, 2025
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.74%. Comparing base (6e813fd) to head (493974c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2345      +/-   ##
==========================================
+ Coverage   46.70%   46.74%   +0.04%     
==========================================
  Files         705      705              
  Lines       39054    39054              
  Branches     9760     9762       +2     
==========================================
+ Hits        18240    18256      +16     
+ Misses      20803    20787      -16     
  Partials       11       11              
Flag Coverage Δ
unit 46.74% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mofojed mofojed merged commit 675b110 into deephaven:main Jan 21, 2025
11 checks passed
@mofojed mofojed deleted the fix-error-boundaries branch January 21, 2025 16:06
@github-actions github-actions bot locked and limited conversation to collaborators Jan 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants