import { Component, type ReactNode } from "react" export class GraphErrorBoundary extends Component<{ children: ReactNode }, { error: Error | null }> { state = { error: null as Error | null } static getDerivedStateFromError(error: Error) { return { error } } render() { if (this.state.error) { return (
{this.state.error.message}