Skip to content

Commit

Permalink
fix: fixed warning componentWillUpdate has been renamed (#18026)
Browse files Browse the repository at this point in the history
* fix: fixed warning componentWillUpdate has been renamed

Fixes [#17994](#17994)

* fix: fixing prettier lint issues

* Remove unused arg
  • Loading branch information
sonapraneeth-a authored and GatsbyJS Bot committed Oct 9, 2019
1 parent aa8b2fb commit 53473cc
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ class Develop extends Component {
})
}

componentWillUpdate(nextProps) {
if (this.props.stdout !== nextProps.stdout) {
componentDidUpdate(prevProps) {
if (this.props.stdout !== prevProps.stdout) {
this.props.stdout.off(`resize`)

const { stdout } = nextProps
const stdout = this.props.stdout
stdout.on(`resize`, () => {
this.setState({
sizes: [stdout.columns, stdout.rows],
Expand Down

0 comments on commit 53473cc

Please sign in to comment.