Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

useErrorBoundary

function useErrorBoundary(callback?: (error: any, errorInfo: ErrorInfo) => Promise<void> | void): [any, () => void];
§
useErrorBoundary(callback?: (error: any, errorInfo: ErrorInfo) => Promise<void> | void): [any, () => void]
[src]

§Parameters

§
callback?: (error: any, errorInfo: ErrorInfo) => Promise<void> | void optional
[src]

§Return Type

§
[any, () => void]
[src]