isErrorBoundary property

bool isErrorBoundary
final

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 and ErrorBoundaryStateMixin classes in order to add default error boundary component behaviors to custom error boundaries.

See: reactjs.org/docs/error-boundaries.html

Implementation

final bool isErrorBoundary;