Open
Description
pushToStdout = (message, options) => {
const { stdout } = this.state
if (this.props.locked) stdout.pop()
stdout.push({ message, isEcho: options?.isEcho || false })
/* istanbul ignore next: Covered by interactivity tests */
if (options?.rawInput) this.pushToHistory(options.rawInput)
this.setState({ stdout: stdout })
}
Here the state object is being changed inplace, so setState does nothing. Probably it's minor, since I couldn't observe the bug.
Activity