if.js (316B)
1 function componentWillReceiveProps(nextProps) { 2 console.log("start"); 3 const { selectedSource } = nextProps; 4 5 if ( 6 nextProps.startPanelSize !== this.props.startPanelSize || 7 nextProps.endPanelSize !== this.props.endPanelSize 8 ) { 9 this.state.editor.codeMirror.setSize(); 10 } 11 console.log("done"); 12 }