Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04fdaa4

Browse files
author
Michelle Tilley
committed
Remove PrInfoController#shouldComponentUpdate
1 parent 97cf3f2 commit 04fdaa4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/controllers/pr-info-controller.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ export default class PrInfoController extends React.Component {
2727
onUnpinPr: PropTypes.func.isRequired,
2828
}
2929

30-
shouldComponentUpdate(nextProps) {
31-
return (
32-
nextProps.token !== this.props.token ||
33-
nextProps.host !== this.props.host ||
34-
nextProps.currentBranchName !== this.props.currentBranchName ||
35-
nextProps.onLogin !== this.props.onLogin ||
36-
nextProps.remote !== this.props.remote
37-
);
38-
}
39-
4030
render() {
4131
if (this.props.token === UNAUTHENTICATED) {
4232
return null;

0 commit comments

Comments
 (0)