Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit ed14d2b

Browse files
author
steven nguyen
authored
copypaste previous commit
`_prevProps` is unused, that's why it has an underscore. Maybe atom does something differently?
1 parent bf6d625 commit ed14d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/views/git-timings-view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ class Waterfall extends React.Component {
171171
this.state = this.getNextState(props);
172172
}
173173

174-
componentWillReceiveProps(nextProps) {
175-
this.setState(this.getNextState(nextProps));
174+
componentDidUpdate(_prevProps) {
175+
this.setState(this.getNextState(this.props));
176176
}
177177

178178
getNextState(props) {

0 commit comments

Comments
 (0)