MCPcopy Create free account
hub / github.com/decaporg/decap-cms / componentDidMount

Function componentDidMount

packages/decap-cms-widget-code/src/CodeControl.js:103–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 }
102
103 componentDidMount() {
104 // Manually validate PropTypes - React 19 breaking change
105 PropTypes.checkPropTypes(CodeControl.propTypes, this.props, 'prop', 'CodeControl');
106
107 this.setState({
108 lang: this.getInitialLang() || '',
109 });
110 }
111
112 componentDidUpdate(prevProps, prevState) {
113 this.updateCodeMirrorProps(prevState);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected