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