MCPcopy
hub / github.com/blitz-js/blitz / componentDidMount

Method componentDidMount

packages/blitz-next/src/error-boundary.tsx:126–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 }
125
126 componentDidMount() {
127 const {error} = this.state
128
129 if (error !== null) {
130 this.updatedWithError = true
131 }
132
133 // Automatically reset on route change
134 this.props.router?.events?.on("routeChangeComplete", this.handleRouteChange)
135 }
136
137 handleRouteChange = () => {
138 debug("Resetting error boundary on route change")

Callers

nothing calls this directly

Calls 1

onMethod · 0.45

Tested by

no test coverage detected