MCPcopy Create free account
hub / github.com/async-library/react-async / componentDidMount

Method componentDidMount

packages/react-async/src/Async.tsx:150–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 }
149
150 componentDidMount() {
151 this.mounted = true
152 if (this.props.promise || !this.state.initialValue) {
153 this.load()
154 }
155 }
156
157 componentDidUpdate(prevProps: Props) {
158 const { watch, watchFn = defaultOptions.watchFn, promise, promiseFn } = this.props

Callers

nothing calls this directly

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected