import { Component, type ReactNode } from "react" interface State { error: Error | null; stack: string } export class ErrorBoundary extends Component<{ children: ReactNode }, State> { state: State = { error: null, stack: "" } static getDerivedStateFromError(error: Error): Partial { return { error } } componentDidCatch(error: Error, info: { componentStack?: string }) { console.error("[colibrì] render crash:", error, info.componentStack) this.setState({ stack: info.componentStack ?? "" }) } render() { if (!this.state.error) return this.props.children return

colibrì UI hit an error

The engine is unaffected. Try refreshing.

{String(this.state.error)}
} }