[CSS-in-JS] Convert EuiErrorBoundary#6053
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6053/ |
elizabetdev
left a comment
There was a problem hiding this comment.
LGTM! 🎉
I just have a few questions and suggestions. Tested in Chrome, Safari, Edge, and Firefox.
| EuiErrorBoundaryProps, | ||
| type EuiErrorBoundaryExtendedProps = EuiErrorBoundaryProps & WithEuiThemeProps; | ||
|
|
||
| export class _EuiErrorBoundary extends Component< |
There was a problem hiding this comment.
Should this component be converted to a function component?
There was a problem hiding this comment.
Unfortunately it's not yet possible: https://reactjs.org/docs/hooks-faq.html#do-hooks-cover-all-use-cases-for-classes
We need componentDidCatch for this to function and there is no way to achieve that without a class component.
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6053/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6053/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6053/ |
|
@thompsongl it's looking good in Safari 15.4! 🎉 |

Summary
Converts
EuiErrorBoundaryto@emotionstyling.Note that if you run this locally, the error overlay on the Error Boundary docs page is expected.
Checklist