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

Function componentDidUpdate

packages/decap-cms-widget-code/src/CodeControl.js:112–122  ·  view source on GitHub ↗
(prevProps, prevState)

Source from the content-addressed store, hash-verified

110 }
111
112 componentDidUpdate(prevProps, prevState) {
113 this.updateCodeMirrorProps(prevState);
114 // when initially hidden and then shown, codeMirror content is not visible
115 if (
116 this.visibility.isInvisibleOnInit &&
117 !this.visibility.isRefreshedAfterInvisible &&
118 !this.props.isParentListCollapsed
119 ) {
120 this.refreshCodeMirrorInstance();
121 }
122 }
123
124 async updateCodeMirrorProps(prevState) {
125 const keys = ['lang', 'theme', 'keyMap'];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected