MCPcopy Create free account
hub / github.com/code100x/daily-code / componentDidCatch

Method componentDidCatch

apps/web/components/ErrorBoundary.tsx:22–24  ·  view source on GitHub ↗
(error: Error, errorInfo: React.ErrorInfo)

Source from the content-addressed store, hash-verified

20 }
21
22 componentDidCatch(error: Error, errorInfo: React.ErrorInfo) {
23 console.log(error, errorInfo);
24 }
25
26 render() {
27 if (this.state.hasError) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected