Skip to content

Commit

Permalink
Remove some dead code in shouldComponentUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Aug 12, 2018
1 parent db7e5d4 commit 7f977b1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/connectAdvanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,8 @@ export default function connectAdvanced(

shouldComponentUpdate(nextProps, nextState) {
const childPropsChanged = nextState.childProps !== this.state.childProps;
const storeStateChanged = nextProps.storeState !== this.props.storeState;
const hasError = !!nextState.error;

let wrapperPropsChanged = false;

const shouldUpdate = childPropsChanged || hasError;
return shouldUpdate;

Expand Down

0 comments on commit 7f977b1

Please sign in to comment.