diff --git a/client/modules/IDE/components/Console.js b/client/modules/IDE/components/Console.js index 362856a0..c604cc41 100644 --- a/client/modules/IDE/components/Console.js +++ b/client/modules/IDE/components/Console.js @@ -18,32 +18,31 @@ class Console extends React.Component { this.children = []; } - shouldComponentUpdate(nextProps) { - // clear children if paused, but only update when new consoleEvent happens - if (!nextProps.isPlaying) { + componentWillReceiveProps(nextProps) { + if (nextProps.isPlaying && !this.props.isPlaying) { this.children = []; + } else if (nextProps.consoleEvent !== this.props.consoleEvent) { + const args = nextProps.consoleEvent.arguments; + const method = nextProps.consoleEvent.method; + const nextChild = ( +