Skip to main content
Go to Latest
function withAppErrorBoundary
import { withAppErrorBoundary } from "https://deno.land/x/udibo_react_app@0.1.2/error.tsx";

Wraps a component with an AppErrorBoundary. Any errors within the boundary will be captured by it. Unlike withErrorBoundary, withAppErrorBoundary can be used to render errors on the server. For the error on the server to be caught by it, it must have the same boundary.

Parameters

Component: ComponentType<P>
errorBoundaryProps: AppErrorBoundaryProps