Skip to content

Commit 7f977b1

Browse files
committed
Remove some dead code in shouldComponentUpdate
1 parent db7e5d4 commit 7f977b1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/components/connectAdvanced.js

-3
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,8 @@ export default function connectAdvanced(
133133

134134
shouldComponentUpdate(nextProps, nextState) {
135135
const childPropsChanged = nextState.childProps !== this.state.childProps;
136-
const storeStateChanged = nextProps.storeState !== this.props.storeState;
137136
const hasError = !!nextState.error;
138137

139-
let wrapperPropsChanged = false;
140-
141138
const shouldUpdate = childPropsChanged || hasError;
142139
return shouldUpdate;
143140

0 commit comments

Comments
 (0)