import { withAppErrorBoundary } from "https://deno.land/x/udibo_react_app@0.11.0/mod.tsx";
A higher-order component that 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