Skip to content

fix: Ensure ErrorBoundary and PanelErrorBoundary do not throw#2345

Merged
mofojed merged 1 commit intodeephaven:mainfrom
mofojed:fix-error-boundaries
Jan 21, 2025
Merged

fix: Ensure ErrorBoundary and PanelErrorBoundary do not throw#2345
mofojed merged 1 commit intodeephaven:mainfrom
mofojed:fix-error-boundaries

Conversation

@mofojed
Copy link
Copy Markdown
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
@codecov
Copy link
Copy Markdown

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
@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