(prevProps, prevState)
| 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']; |
nothing calls this directly
no outgoing calls
no test coverage detected