Packages
React inside Phoenix LiveView — async code splitting, client-side props diffing, and zero-config component discovery.
Retired package: Release invalid - Not production-ready, LiveView 1.0.x compatibility issue
Current section
Files
Jump to
Current section
Files
assets/dist/errorBoundary.d.ts
import { Component, type ReactNode, type ErrorInfo } from "react";
interface Props {
children?: ReactNode;
componentName?: string;
}
interface State {
hasError: boolean;
error: Error | null;
}
export declare class ReactPhxErrorBoundary extends Component<Props, State> {
state: State;
static getDerivedStateFromError(error: Error): State;
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
componentDidUpdate(prevProps: Props): void;
render(): ReactNode;
}
export {};