Skip to content

@uservane/copilotkit: UserVaneErrorBoundary

Defined in: @[email protected]_react@19.2.3/node_modules/@uservane/agent-react/dist/index.d.ts:35

Internal error boundary for the agent-native React surface. A render throw inside InlineFeedback / provider subtree must never reach the host chat tree (design section 3 render + section 9).

  • Component<Props, State>

new UserVaneErrorBoundary(props): UserVaneErrorBoundary

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1016

Props

UserVaneErrorBoundary

Component<Props, State>.constructor

new UserVaneErrorBoundary(props, context): UserVaneErrorBoundary

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1021

Props

any

UserVaneErrorBoundary

React Docs

Component<Props, State>.constructor

context: unknown

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1014

If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType. Should be used with type annotation or static contextType.

static contextType = MyContext
// For TS pre-3.7:
context!: React.ContextType<typeof MyContext>
// For TS 3.7 and above:
declare context: React.ContextType<typeof MyContext>

React Docs

Component.context


readonly props: Readonly<P>

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1034

Component.props


refs: object

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1041

[key: string]: ReactInstance

Legacy React Docs

Component.refs


state: State

Defined in: @[email protected]_react@19.2.3/node_modules/@uservane/agent-react/dist/index.d.ts:36

Component.state


static optional contextType?: Context<any>

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:996

If set, this.context will be set at runtime to the current value of the given Context.

type MyContext = number
const Ctx = React.createContext<MyContext>(0)
class Foo extends React.Component {
static contextType = Ctx
context!: React.ContextType<typeof Ctx>
render () {
return <>My context's value: {this.context}</>;
}
}

https://react.dev/reference/react/Component#static-contexttype

Component.contextType

componentDidCatch(error, info): void

Defined in: @[email protected]_react@19.2.3/node_modules/@uservane/agent-react/dist/index.d.ts:38

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

Error

ErrorInfo

void

Component.componentDidCatch


optional componentDidMount(): void

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1377

Called immediately after a component is mounted. Setting state here will trigger re-rendering.

void

Component.componentDidMount


optional componentDidUpdate(prevProps, prevState, snapshot?): void

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1440

Called immediately after updating occurs. Not called for the initial render.

The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

Readonly<P>

Readonly<S>

any

void

Component.componentDidUpdate


optional componentWillMount(): void

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1456

Called immediately before mounting occurs, and before Component.render. Avoid introducing any side-effects or subscriptions in this method.

Note: the presence of NewLifecycle.getSnapshotBeforeUpdate getSnapshotBeforeUpdate or StaticLifecycle.getDerivedStateFromProps getDerivedStateFromProps prevents this from being invoked.

void

16.3, use ComponentLifecycle.componentDidMount componentDidMount or the constructor instead; will stop working in React 17

Component.componentWillMount


optional componentWillReceiveProps(nextProps, nextContext): void

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1487

Called when the component may be receiving new props. React may call this even if props have not changed, so be sure to compare new and existing props if you only want to handle changes.

Calling Component.setState generally does not trigger this method.

Note: the presence of NewLifecycle.getSnapshotBeforeUpdate getSnapshotBeforeUpdate or StaticLifecycle.getDerivedStateFromProps getDerivedStateFromProps prevents this from being invoked.

Readonly<P>

any

void

16.3, use static StaticLifecycle.getDerivedStateFromProps getDerivedStateFromProps instead; will stop working in React 17

Component.componentWillReceiveProps


optional componentWillUnmount(): void

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1393

Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

void

Component.componentWillUnmount


optional componentWillUpdate(nextProps, nextState, nextContext): void

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1519

Called immediately before rendering when new props or state is received. Not called for the initial render.

Note: You cannot call Component.setState here.

Note: the presence of NewLifecycle.getSnapshotBeforeUpdate getSnapshotBeforeUpdate or StaticLifecycle.getDerivedStateFromProps getDerivedStateFromProps prevents this from being invoked.

Readonly<P>

Readonly<S>

any

void

16.3, use getSnapshotBeforeUpdate instead; will stop working in React 17

Component.componentWillUpdate


forceUpdate(callback?): void

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1031

() => void

void

Component.forceUpdate


optional getSnapshotBeforeUpdate(prevProps, prevState): any

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1434

Runs before React applies the result of Component.render render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before Component.render render causes changes to it.

Note: the presence of this method prevents any of the deprecated lifecycle events from running.

Readonly<P>

Readonly<S>

any

Component.getSnapshotBeforeUpdate


render(): ReactNode

Defined in: @[email protected]_react@19.2.3/node_modules/@uservane/agent-react/dist/index.d.ts:39

ReactNode

Component.render


setState<K>(state, callback?): void

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1026

K extends "hasError"

State | ((prevState, props) => State | Pick<State, K>) | Pick<State, K>

() => void

void

Component.setState


optional shouldComponentUpdate(nextProps, nextState, nextContext): boolean

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1388

Called to determine whether the change in props and state should trigger a re-render.

Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

If false is returned, Component.render, componentWillUpdate and componentDidUpdate will not be called.

Readonly<P>

Readonly<S>

any

boolean

Component.shouldComponentUpdate


optional UNSAFE_componentWillMount(): void

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1471

Called immediately before mounting occurs, and before Component.render. Avoid introducing any side-effects or subscriptions in this method.

This method will not stop working in React 17.

Note: the presence of NewLifecycle.getSnapshotBeforeUpdate getSnapshotBeforeUpdate or StaticLifecycle.getDerivedStateFromProps getDerivedStateFromProps prevents this from being invoked.

void

16.3, use ComponentLifecycle.componentDidMount componentDidMount or the constructor instead

Component.UNSAFE_componentWillMount


optional UNSAFE_componentWillReceiveProps(nextProps, nextContext): void

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1505

Called when the component may be receiving new props. React may call this even if props have not changed, so be sure to compare new and existing props if you only want to handle changes.

Calling Component.setState generally does not trigger this method.

This method will not stop working in React 17.

Note: the presence of NewLifecycle.getSnapshotBeforeUpdate getSnapshotBeforeUpdate or StaticLifecycle.getDerivedStateFromProps getDerivedStateFromProps prevents this from being invoked.

Readonly<P>

any

void

16.3, use static StaticLifecycle.getDerivedStateFromProps getDerivedStateFromProps instead

Component.UNSAFE_componentWillReceiveProps


optional UNSAFE_componentWillUpdate(nextProps, nextState, nextContext): void

Defined in: @[email protected]/node_modules/@types/react/index.d.ts:1535

Called immediately before rendering when new props or state is received. Not called for the initial render.

Note: You cannot call Component.setState here.

This method will not stop working in React 17.

Note: the presence of NewLifecycle.getSnapshotBeforeUpdate getSnapshotBeforeUpdate or StaticLifecycle.getDerivedStateFromProps getDerivedStateFromProps prevents this from being invoked.

Readonly<P>

Readonly<S>

any

void

16.3, use getSnapshotBeforeUpdate instead

Component.UNSAFE_componentWillUpdate


static getDerivedStateFromError(): State

Defined in: @[email protected]_react@19.2.3/node_modules/@uservane/agent-react/dist/index.d.ts:37

State