isErrorBoundary property
Whether the component serves as a React error boundary.
When set to true
, this component will be able to make use of
the componentDidCatch
and getDerivedStateFromError
component lifecycle
methods in order to "catch" ReactJS errors from within its child component tree.
Check out the ErrorBoundary
higher-order component for an example implementation.
TODO (CPLAT-5037): Add an example of how to utilize the
ErrorBoundaryMixin
,ErrorBoundaryPropsMixin
andErrorBoundaryStateMixin
classes in order to add default error boundary component behaviors to custom error boundaries.
Implementation
final bool isErrorBoundary;