Open jocelynn1uphealth opened 1 year ago
Hi @jocelynn1uphealth .
This class uses componentDidCatch
and there is no equivalent hook available yet.
Based on this closed discussion, doesn't look like an equivalent hook is coming. https://www.npmjs.com/package/react-error-boundary
Alternatively could consider an additional dependency like the following to support this. https://www.npmjs.com/package/react-error-boundary
Let me know your thoughts.
Addressed this and #398 in https://github.com/1uphealth/fhir-react/pull/404
Background:
We want to improve the bundle size and performance of this library and write modern React code.
Expected Behavior:
ErrorBoundary
class has been removed and replaced with a functional component of the same nameErrorBoundary
component is in its own file