Semparse Docs

Class: SemparseErrorBoundary

@workspace/semparse-sdk-react-native


@workspace/semparse-sdk-react-native / SemparseErrorBoundary

Class: SemparseErrorBoundary

Reports rendering errors from a React subtree to Semparse.

Extends

Constructors

Constructor

new SemparseErrorBoundary(props): SemparseErrorBoundary

Parameters

props

SemparseErrorBoundaryProps

Returns

SemparseErrorBoundary

Inherited from

React.Component< SemparseErrorBoundaryProps, SemparseErrorBoundaryState >.constructor

Constructor

new SemparseErrorBoundary(props, context): SemparseErrorBoundary

Parameters

props

SemparseErrorBoundaryProps

context

any

value of the parent Context specified in contextType.

Returns

SemparseErrorBoundary

Inherited from

React.Component< SemparseErrorBoundaryProps, SemparseErrorBoundaryState >.constructor

Properties

state

state: SemparseErrorBoundaryState

Overrides

React.Component.state

Methods

componentDidCatch()

componentDidCatch(error): void

Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

Parameters

error

Error

Returns

void

Overrides

React.Component.componentDidCatch


render()

render(): ReactNode

Returns

ReactNode

Overrides

React.Component.render

On this page